diff --git a/build/repo.targets b/build/repo.targets deleted file mode 100644 index 537aa367..00000000 --- a/build/repo.targets +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - diff --git a/templates/AngularSpa/ClientApp/app/app.module.client.ts b/templates/AngularSpa/ClientApp/app/app.module.client.ts index ee778122..55c9f08e 100644 --- a/templates/AngularSpa/ClientApp/app/app.module.client.ts +++ b/templates/AngularSpa/ClientApp/app/app.module.client.ts @@ -1,7 +1,5 @@ import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; -import { FormsModule } from '@angular/forms'; -import { HttpModule } from '@angular/http'; import { sharedConfig } from './app.module.shared'; @NgModule({ @@ -9,8 +7,6 @@ import { sharedConfig } from './app.module.shared'; declarations: sharedConfig.declarations, imports: [ BrowserModule, - FormsModule, - HttpModule, ...sharedConfig.imports ], providers: [ diff --git a/templates/AngularSpa/ClientApp/app/app.module.shared.ts b/templates/AngularSpa/ClientApp/app/app.module.shared.ts index 18615017..798e03a3 100644 --- a/templates/AngularSpa/ClientApp/app/app.module.shared.ts +++ b/templates/AngularSpa/ClientApp/app/app.module.shared.ts @@ -1,4 +1,6 @@ import { NgModule } from '@angular/core'; +import { FormsModule } from '@angular/forms'; +import { HttpModule } from '@angular/http'; import { RouterModule } from '@angular/router'; import { AppComponent } from './components/app/app.component' @@ -17,6 +19,8 @@ export const sharedConfig: NgModule = { HomeComponent ], imports: [ + FormsModule, + HttpModule, RouterModule.forRoot([ { path: '', redirectTo: 'home', pathMatch: 'full' }, { path: 'home', component: HomeComponent },