Hi, I'm currently using upgrading from rc4 to angular-2.0.1, and my code with angular-2.0.1 is like this:
import { WebpackAsyncRoute,WebpackAsyncModules } from '@angularclass/webpack-toolkit'; @NgModule({ imports: [ ... ], declarations: [ ... ], providers: [ ... WebpackAsyncRoute, WebpackAsyncModules, ], bootstrap: [App], })
and the route is like this:
import { WebpackAsyncRoute } from '@angularclass/webpack-toolkit'; export const routes: Routes = [ {path: '', component: LoginComponent}, {path: 'home', component: IndexComponent, canActivate: [WebpackAsyncRoute], children: [ {path: 'overview', component: OverviewComponent, canActivate: [LoggedInGuard] }, // must be included ... ]}, {path: '**', redirectTo: '', pathMatch: 'full'}, ];
While I logged in I will receive an error in title, I see the toolkit already supports rc6 with the latest change, so how did you use WebpackAsyncRoute in your code? Please advice.