1- import { BrowserModule } from ' @angular/platform-browser' ;
2- import { NgModule } from ' @angular/core' ;
3- import { RouterModule } from ' @angular/router' ;
4- import { FormsModule , ReactiveFormsModule } from ' @angular/forms' ;
1+ import { BrowserModule } from " @angular/platform-browser" ;
2+ import { NgModule } from " @angular/core" ;
3+ import { RouterModule } from " @angular/router" ;
4+ import { FormsModule , ReactiveFormsModule } from " @angular/forms" ;
55
6- import { AppComponent } from ' ./app.component' ;
7- import { NavBarComponent } from ' ./nav-bar/nav-bar.component' ;
8- import { ReactiveFormComponent } from ' ./reactive-form/reactive-form.component' ;
9- import { TemplateDrivenFormComponent } from ' ./template-driven-form/template-driven-form.component' ;
10- import { HomeComponent } from ' ./home/home.component' ;
11- import { PasswordPatternDirective } from ' ./directives/password-pattern.directive' ;
12- import { MatchPasswordDirective } from ' ./directives/match-password.directive' ;
13- import { ValidateUserNameDirective } from ' ./directives/validate-user-name.directive' ;
6+ import { AppComponent } from " ./app.component" ;
7+ import { NavBarComponent } from " ./nav-bar/nav-bar.component" ;
8+ import { ReactiveFormComponent } from " ./reactive-form/reactive-form.component" ;
9+ import { TemplateDrivenFormComponent } from " ./template-driven-form/template-driven-form.component" ;
10+ import { HomeComponent } from " ./home/home.component" ;
11+ import { PasswordPatternDirective } from " ./directives/password-pattern.directive" ;
12+ import { MatchPasswordDirective } from " ./directives/match-password.directive" ;
13+ import { ValidateUserNameDirective } from " ./directives/validate-user-name.directive" ;
1414
1515@NgModule ( {
1616 declarations : [
@@ -21,19 +21,21 @@ import { ValidateUserNameDirective } from './directives/validate-user-name.direc
2121 HomeComponent ,
2222 PasswordPatternDirective ,
2323 MatchPasswordDirective ,
24- ValidateUserNameDirective
24+ ValidateUserNameDirective ,
2525 ] ,
2626 imports : [
2727 FormsModule ,
2828 ReactiveFormsModule ,
2929 BrowserModule ,
3030 RouterModule . forRoot ( [
31- { path : '' , component : HomeComponent } ,
32- { path : 'reactive-form' , component : ReactiveFormComponent } ,
33- { path : 'template-form' , component : TemplateDrivenFormComponent } ,
34- ] , { relativeLinkResolution : 'legacy' } ) ,
31+ { path : "" , component : HomeComponent } ,
32+ { path : "reactive-form" , component : ReactiveFormComponent } ,
33+ {
34+ path : "template-driven-form" ,
35+ component : TemplateDrivenFormComponent ,
36+ } ,
37+ ] ) ,
3538 ] ,
36- providers : [ ] ,
37- bootstrap : [ AppComponent ]
39+ bootstrap : [ AppComponent ] ,
3840} )
39- export class AppModule { }
41+ export class AppModule { }
0 commit comments