These are chat archives for AngularClass/angular2-webpack-starter

7th
Apr 2016
Didier Hartong
@DHFW
Apr 07 2016 08:44

Hello, any one knows how to async load a component that has child routes.
This works:

{ path: '/about', name: 'About', loader: () => require('es6-promise!./about')('About') },

But this throws an error:

{ path: '/...',  name: 'Exam',  loader: () => require('es6-promise!./exam')('Exam') },

The error is: "Tried to get instruction before the type was loaded".

An Xie
@ShaneXie
Apr 07 2016 18:43
Could anyone tell me what's the purpose of those index.ts files?