-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(angular): create shared module to have access to the value accessors
- Loading branch information
Showing
4 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { NgModule } from '@angular/core' | ||
import { CommonModule } from '@angular/common' | ||
import { FormsModule } from '@angular/forms' | ||
|
||
import { BooleanValueAccessor } from './directives/boolean-value-accessor' | ||
import { TextValueAccessor } from './directives/text-value-accessor' | ||
import { SelectValueAccessor } from './directives/select-value-accessor' | ||
import { CheckboxValueAccessor } from './directives/checkbox-accessor' | ||
import { NumericValueAccessor } from './directives/number-value-accessor' | ||
|
||
import { AutoFocus } from './focus.directive' | ||
|
||
const DECLARATIONS = [ | ||
// directives | ||
AutoFocus, | ||
|
||
// ngModel accessors | ||
CheckboxValueAccessor, | ||
BooleanValueAccessor, | ||
TextValueAccessor, | ||
SelectValueAccessor, | ||
NumericValueAccessor, | ||
] | ||
|
||
@NgModule({ | ||
declarations: [DECLARATIONS], | ||
exports: [DECLARATIONS], | ||
imports: [CommonModule, FormsModule], | ||
}) | ||
export class BalSharedModule {} |