Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Moved FormsModule and HttpModule to app.modules.shared #1012

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions build/repo.targets

This file was deleted.

4 changes: 0 additions & 4 deletions templates/AngularSpa/ClientApp/app/app.module.client.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
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({
bootstrap: sharedConfig.bootstrap,
declarations: sharedConfig.declarations,
imports: [
BrowserModule,
FormsModule,
HttpModule,
...sharedConfig.imports
],
providers: [
Expand Down
4 changes: 4 additions & 0 deletions templates/AngularSpa/ClientApp/app/app.module.shared.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -17,6 +19,8 @@ export const sharedConfig: NgModule = {
HomeComponent
],
imports: [
FormsModule,
HttpModule,
RouterModule.forRoot([
{ path: '', redirectTo: 'home', pathMatch: 'full' },
{ path: 'home', component: HomeComponent },
Expand Down