You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 17, 2024. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: