修改:http://stackoverflow.com/questions/34842536/implementing-dynamic-routing-in-angular2-typescript
下面的代码是异步加载,而非动态加载。
{ path: '/reviewTask', loader: () => require('./review/review')('ReviewTask'), name: 'ReviewTask'},
修改:
http://stackoverflow.com/questions/34842536/implementing-dynamic-routing-in-angular2-typescript
下面的代码是异步加载,而非动态加载。