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

Apr 2016
Didier Hartong
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
Apr 07 2016 18:43
Could anyone tell me what's the purpose of those index.ts files?