forked from valor-software/ngx-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(forms): add export of FormsModule where [ngModel] selector is pr…
…esent (valor-software#931) * try to fix valor-software#929 by importing FormsModule because the selectors use [ngModel] * export FormsModule in all modules which use ngModel selector binding because every template which uses such a module would anyway import FormsModul which is now no longer necessary fixes valor-software#929
- Loading branch information
1 parent
a6cbdcd
commit 8e60828
Showing
6 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { FormsModule } from '@angular/forms'; | ||
|
||
import { ButtonCheckboxDirective } from './button-checkbox.directive'; | ||
import { ButtonRadioDirective } from './button-radio.directive'; | ||
|
||
@NgModule({ | ||
imports: [FormsModule], | ||
declarations: [ButtonCheckboxDirective, ButtonRadioDirective], | ||
exports: [ButtonCheckboxDirective, ButtonRadioDirective] | ||
exports: [ButtonCheckboxDirective, ButtonRadioDirective, FormsModule] | ||
}) | ||
export class ButtonsModule { | ||
} |
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { FormsModule } from '@angular/forms'; | ||
|
||
import { PagerComponent } from './pager.component'; | ||
import { PaginationComponent } from './pagination.component'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule], | ||
declarations: [PaginationComponent, PagerComponent], | ||
exports: [PaginationComponent, PagerComponent] | ||
imports: [CommonModule, FormsModule], | ||
declarations: [PagerComponent, PaginationComponent], | ||
exports: [FormsModule, PagerComponent, PaginationComponent] | ||
}) | ||
export class PaginationModule { | ||
} |
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { FormsModule } from '@angular/forms'; | ||
|
||
import { RatingComponent } from './rating.component'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule], | ||
imports: [CommonModule, FormsModule], | ||
declarations: [RatingComponent], | ||
exports: [RatingComponent] | ||
exports: [FormsModule, RatingComponent] | ||
}) | ||
export class RatingModule { | ||
} |
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