Example of Angular 2 lazy loading to help with #465

This commit is contained in:
SteveSandersonMS
2016-12-01 15:13:38 +00:00
committed by Steve Sanderson
parent 1f03b1e633
commit df5d27d0d8
4 changed files with 17 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CounterComponent } from './counter.component';
@NgModule({
imports: [
RouterModule.forChild([
{ path: '', component: CounterComponent }
])
],
exports: [ RouterModule ],
declarations: [ CounterComponent ]
})
export class CounterModule {}