FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(router): fix lazy loading of aux routes by jasonaden · Pull Request #23459 · angular/angular · GitHub

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

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 requested review from IgorMinar and vicb April 19, 2018 22:56
jasonaden force-pushed the fix_10981 branch 2 times, most recently from 6648737 to c474619 Compare April 20, 2018 00:16

Copy link
Copy Markdown

You can preview 6648737 at https://pr23459-6648737.ngbuilds.io/.

Copy link
Copy Markdown

You can preview c474619 at https://pr23459-c474619.ngbuilds.io/.

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

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown

You can preview d10eb7b at https://pr23459-d10eb7b.ngbuilds.io/.

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

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown

You can preview 1d27d08 at https://pr23459-1d27d08.ngbuilds.io/.

Copy link
Copy Markdown

You can preview 7784ce8 at https://pr23459-7784ce8.ngbuilds.io/.

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

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 commented Jul 3, 2018

Copy link
Copy Markdown
Member

@csharma2212 Angular 6.0.5

Copy link
Copy Markdown

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

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?

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 Bot locked and limited conversation to collaborators Sep 13, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL