-
Notifications
You must be signed in to change notification settings - Fork 12k
fix: do not add ROUTER_PROVIDERS on generation. #565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
import {environment} from './app/environment'; | ||
import {<%= jsComponentName %>App} from './app/<%= htmlComponentName %>.component'; | ||
|
||
if (environment.production) { | ||
enableProdMode(); | ||
} | ||
|
||
bootstrap(<%= jsComponentName %>App); | ||
bootstrap(<%= jsComponentName %>App, [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why add them here? the style guide advice (and from Igor) has been to not add providers in the main bootstrap, but instead to put them in the root app component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay with that too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. That would be great to move this to the root app component, so we stay in sync
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
@@ -1,17 +1,13 @@ | |||
import {Component} from 'angular2/core'; | |||
import {RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS} from 'angular2/router'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This component still has a router-outlet
, which means it needs ROUTER_DIRECTIVES
I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done (locally).
edc7d57
to
9ce096e
Compare
@filipesilva: Please take another look. It passes the tests now. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.