mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-25 19:17:30 +00:00
Example of Angular 2 lazy loading to help with #465
This commit is contained in:
committed by
Steve Sanderson
parent
1f03b1e633
commit
df5d27d0d8
@@ -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 {}
|
||||
Reference in New Issue
Block a user