-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Closed
Labels
Description
Say I configure my routes with
export const routes: Routes = [
{path: 'search', redirectTo: '/'}, {path: '', component: SearchVideos},
{path: 'upload', component: UploadVideos}
];
ngc produces an ngfactory.ts containing:
get _ROUTES_40():any[] {
if ((this.__ROUTES_40 == (null as any))) { (this.__ROUTES_40 = [[
{
'path': 'search',
'redirectTo': '/'
}
,
{
'path': '',
'component': import38.SearchVideos
}
,
{
'path': 'upload',
'component': import39.UploadVideos
}
]
]); }
return this.__ROUTES_40;
}
note that redirectTo
got quoted as 'redirectTo'
When closure compiler renames the redirectTo
property to some short name, it won't rename the one in the ngfactory.ts because it's quoted.