feat(router): add the ANALYZE_FOR_PRECOMPILE provider to make dev ergonomics better

This commit is contained in:
vsavkin
2016-07-07 17:53:26 -07:00
parent 46e105f3ab
commit 96a9e66616
5 changed files with 24 additions and 25 deletions

View File

@ -140,7 +140,6 @@ export const ROUTER_CONFIG = [
selector: 'inbox-app',
viewProviders: [DbService],
templateUrl: 'app/inbox-app.html',
directives: ROUTER_DIRECTIVES,
precompile: [InboxCmp, DraftsCmp]
directives: ROUTER_DIRECTIVES
})
export class InboxApp {}

View File

@ -25,7 +25,6 @@ export class InboxDetailCmp {
}
@AppModule({
providers: [provideRoutes([{path: ':id', component: InboxDetailCmp}])],
precompile: [InboxDetailCmp]
providers: [provideRoutes([{path: ':id', component: InboxDetailCmp}])]
})
export default class InboxDetailModule {}