Skip to content

fix(router): fix lazy loading of aux routes - #23459

Closed
jasonaden wants to merge 1 commit into
angular:masterfrom
jasonaden:fix_10981
Closed

jasonaden wants to merge 1 commit into
angular:masterfrom
jasonaden:fix_10981

Conversation

@jasonaden

Copy link
Copy Markdown
Contributor

Fixes #10981

This PR adds an EmptyOutletComponent that becomes the default in the case of a route config with a path, outlet, and children defined, but no Component. In the past, this would throw an error. The workaround was to define an empty component.

This PR makes that workaround the default for this scenario.

@jasonaden
jasonaden requested review from IgorMinar and vicb April 19, 2018 22:56
@jasonaden
jasonaden force-pushed the fix_10981 branch 2 times, most recently from 6648737 to c474619 Compare April 20, 2018 00:16
@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@IgorMinar IgorMinar added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Apr 26, 2018
@IgorMinar

Copy link
Copy Markdown
Contributor

@jasonaden this change fails in g3, can you please investigate and get the presubmit to pass?

@IgorMinar IgorMinar added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: merge The PR is ready for merge by the caretaker labels Apr 26, 2018
@mary-poppins

Copy link
Copy Markdown

@JoostK

JoostK commented Jun 8, 2018

Copy link
Copy Markdown
Member

The new component is marked as entry component in the testing module, not the production variant. Is that correct? I would currently expect the dynamically referenced EmptyOutletComponent component not to be part of the AOT compilation scope, since it isn't statically referenced.

@jasonaden jasonaden added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Jun 8, 2018
@jasonaden

Copy link
Copy Markdown
Contributor Author

@JoostK Nope, it was wrong. It's been adjusted. 👍

@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

mhevery pushed a commit that referenced this pull request Jun 13, 2018
@mhevery mhevery closed this in 5731d07 Jun 13, 2018
@jasonaden jasonaden mentioned this pull request Jun 13, 2018
@csharma2212

Copy link
Copy Markdown

Hi @jasonaden
I want to include this fix into my app. I am using @angular/router 5.2.11.
Could you please tell in which version of angular/router this change is merged.

@JoostK

JoostK commented Jul 3, 2018

Copy link
Copy Markdown
Member

@csharma2212 Angular 6.0.5

@DrMabuse23

Copy link
Copy Markdown

Sorry but any Example is removed from web anyone have a example ?

@trotyl

trotyl commented Aug 16, 2018

Copy link
Copy Markdown
Contributor

@DrMabuse23 This is a fix, not a feature, thus nothing changed in usage, what did you expect in an example?

@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 13, 2019
adhambaouz pushed a commit to adhambaouz/angular that referenced this pull request Nov 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: router cla: yes target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lazy load auxilary

9 participants