Use HttpWithStateTransferModule in Angular template

This commit is contained in:
Steve Sanderson
2017-08-02 10:55:55 +01:00
parent 5f1450c9ba
commit 1287709feb
5 changed files with 14 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { RouterModule } from '@angular/router';
import { HttpWithStateTransferModule } from 'aspnet-angular';
import { AppComponent } from './components/app/app.component';
import { NavMenuComponent } from './components/navmenu/navmenu.component';
@@ -21,6 +22,7 @@ import { CounterComponent } from './components/counter/counter.component';
imports: [
CommonModule,
HttpModule,
HttpWithStateTransferModule,
FormsModule,
RouterModule.forRoot([
{ path: '', redirectTo: 'home', pathMatch: 'full' },