Skip to content

refactor(router): use ApplicationRef to provide the first bootstrapped component as ROUTER_PRIMARY_COMPONENT automatically.#4643

Closed
alxhub wants to merge 1 commit into
angular:masterfrom
alxhub:fix-router
Closed

refactor(router): use ApplicationRef to provide the first bootstrapped component as ROUTER_PRIMARY_COMPONENT automatically.#4643
alxhub wants to merge 1 commit into
angular:masterfrom
alxhub:fix-router

Conversation

@alxhub
Copy link
Copy Markdown
Member

@alxhub alxhub commented Oct 9, 2015

No description provided.

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 is the Type signature commented out?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No idea - it was done that way in the old bootstrap code, so I've carried it forward. My guess is the compiler used to not have Type.

@IgorMinar
Copy link
Copy Markdown
Contributor

Please add a breaking change notice into the commit message before/after examples that show people how to migrate.

otherwise looks good to me.

let's have @mhevery take a look and comment on the ApplicationRef change before merging.

@alxhub alxhub force-pushed the fix-router branch 3 times, most recently from 6207ed1 to 241e214 Compare October 9, 2015 23:59
@alxhub alxhub added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 10, 2015
@alxhub alxhub force-pushed the fix-router branch 2 times, most recently from f8b8982 to f1a119b Compare October 10, 2015 00:06
@IgorMinar IgorMinar assigned alxhub and unassigned mhevery Oct 10, 2015
@IgorMinar IgorMinar added the action: merge The PR is ready for merge by the caretaker label Oct 10, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #4643 on behalf of @IgorMinar to branch presubmit-IgorMinar-pr-4643.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Oct 10, 2015
@alxhub alxhub added the action: merge The PR is ready for merge by the caretaker label Oct 10, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #4643 on behalf of @alxhub to branch presubmit-alxhub-pr-4643.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Oct 10, 2015
…d component as ROUTER_PRIMARY_COMPONENT automatically.

This removes the routerBindings function as it is no longer necessary. ROUTER_BINDINGS will automatically pick the first bootstrapped component to satisfy ROUTER_PRIMARY_COMPONENT.

BREAKING CHANGE:

Before: bootstrap(MyComponent, [routerBindings(myComponent)]);
After: bootstrap(MyComponent, [ROUTER_BINDINGS]);
@alxhub alxhub added the action: merge The PR is ready for merge by the caretaker label Oct 10, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #4643 on behalf of @alxhub to branch presubmit-alxhub-pr-4643.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Oct 10, 2015
@alxhub alxhub closed this in 90191ce Oct 10, 2015
@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-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants