Angular2 rc.4 lazy Routing is depreciated.
is there any new lazy routing / async routing example for rc.4
loadChildren
is supposed to do that:
{
path: 'section',
loadChildren: 'section-bundle'
}
I don't know what exactly the string should point to.
See also
- https://github.com/angular/angular/issues/9527#issuecomment-236038503
- https://github.com/angular/angular/issues/10577 (with Plunker)
{ path: 'heroes', loadChildren: 'app/hero/hero.module' }
来源:https://stackoverflow.com/questions/38837493/angular2-rc-4-layz-routing