diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 2487471..c1cca0c 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -2,7 +2,6 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { LocationStrategy, HashLocationStrategy } from '@angular/common'; import { HttpModule } from '@angular/http'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { AppComponent } from './app.component'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; @@ -26,8 +25,6 @@ import { SimpleLayoutComponent } from './layouts/simple-layout.component'; BrowserModule, AppRoutingModule, HttpModule, - FormsModule, - ReactiveFormsModule, BsDropdownModule.forRoot(), TabsModule.forRoot(), ChartsModule diff --git a/src/app/pages/pages.module.ts b/src/app/pages/pages.module.ts index 9c79c6a..933aa1c 100644 --- a/src/app/pages/pages.module.ts +++ b/src/app/pages/pages.module.ts @@ -1,4 +1,6 @@ import { NgModule } from '@angular/core'; +import { FormsModule, ReactiveFormsModule } from '@angular/forms'; +import { CommonModule } from '@angular/common'; import { P404Component } from './404.component'; import { P500Component } from './500.component'; @@ -8,7 +10,12 @@ import { RegisterComponent } from './register.component'; import { PagesRoutingModule } from './pages-routing.module'; @NgModule({ - imports: [ PagesRoutingModule ], + imports: [ + CommonModule, + PagesRoutingModule, + FormsModule, + ReactiveFormsModule, + ], declarations: [ P404Component, P500Component, diff --git a/src/app/pages/register.component.html b/src/app/pages/register.component.html index 20f6f1d..7b7dfe6 100644 --- a/src/app/pages/register.component.html +++ b/src/app/pages/register.component.html @@ -4,6 +4,7 @@