|
1 | 1 | import {CommonModule} from '@angular/common'; |
2 | | -import {NgModule, ModuleWithProviders} from '@angular/core'; |
3 | | -import {MatCardModule, MatIconModule, MatProgressBarModule} from '@angular/material'; |
| 2 | +import {ModuleWithProviders, NgModule} from '@angular/core'; |
| 3 | +import {MatCardModule, MatIconModule, MatInputModule, MatProgressBarModule, MatRippleModule} from '@angular/material'; |
4 | 4 |
|
5 | 5 | import {MatPasswordStrengthComponent} from './component/mat-password-strength/mat-password-strength.component'; |
6 | | -import { |
7 | | - MatPasswordStrengthInfoComponent |
8 | | -} from './component/mat-password-strength-info/mat-password-strength-info.component'; |
| 6 | +import {MatPasswordStrengthInfoComponent} from './component/mat-password-strength-info/mat-password-strength-info.component'; |
| 7 | +import {MatPassToggleVisibilityComponent} from './component/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component'; |
9 | 8 |
|
10 | 9 | // Export module's public API |
11 | 10 | export {MatPasswordStrengthComponent} from './component/mat-password-strength/mat-password-strength.component'; |
12 | 11 | export { |
13 | 12 | MatPasswordStrengthInfoComponent |
14 | 13 | } from './component/mat-password-strength-info/mat-password-strength-info.component'; |
| 14 | +export {MatPassToggleVisibilityComponent} from './component/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component'; |
15 | 15 |
|
16 | 16 | @NgModule({ |
17 | 17 | imports: [ |
18 | 18 | CommonModule, |
19 | 19 | MatProgressBarModule, |
20 | 20 | MatCardModule, |
21 | | - MatIconModule |
| 21 | + MatIconModule, |
| 22 | + MatInputModule, |
| 23 | + MatRippleModule |
| 24 | + ], |
| 25 | + exports: [ |
| 26 | + MatPasswordStrengthComponent, |
| 27 | + MatPasswordStrengthInfoComponent, |
| 28 | + MatPassToggleVisibilityComponent |
| 29 | + ], |
| 30 | + declarations: [ |
| 31 | + MatPasswordStrengthComponent, |
| 32 | + MatPasswordStrengthInfoComponent, |
| 33 | + MatPassToggleVisibilityComponent |
22 | 34 | ], |
23 | | - exports: [MatPasswordStrengthComponent, MatPasswordStrengthInfoComponent], |
24 | | - declarations: [MatPasswordStrengthComponent, MatPasswordStrengthInfoComponent] |
| 35 | + entryComponents: [MatPassToggleVisibilityComponent] |
25 | 36 | }) |
26 | 37 | export class MatPasswordStrengthModule { |
27 | 38 | static forRoot(): ModuleWithProviders { |
|
0 commit comments