Skip to content

fix: do not add ROUTER_PROVIDERS on generation. - #565

Merged
hansl merged 1 commit into
angular:masterfrom
hansl:route-fix
Apr 30, 2016
Merged

fix: do not add ROUTER_PROVIDERS on generation.#565
hansl merged 1 commit into
angular:masterfrom
hansl:route-fix

Conversation

@hansl

Copy link
Copy Markdown
Contributor

No description provided.

}

bootstrap(<%= jsComponentName %>App);
bootstrap(<%= jsComponentName %>App, [

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
ContributorAuthor

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

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
ContributorAuthor

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';

Copy link
Copy Markdown
Contributor

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.

@hanslhanslApr 29, 2016

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done (locally).

@hansl
hanslforce-pushed the route-fix branch 3 times, most recently from edc7d57 to 9ce096eCompareApril 29, 2016 22:59
@hansl

Copy link
Copy Markdown
ContributorAuthor

@filipesilva: Please take another look. It passes the tests now.

@hansl
hansl merged commit 69cdb28 into angular:masterApr 30, 2016
@hansl
hansl deleted the route-fix branch April 30, 2016 00:05
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-botangular-automatic-lock-botBot locked and limited conversation to collaborators Sep 9, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@hansl@johnpapa@filipesilva