Skip to content

chore(dev-app): add lazy loading - #15522

Merged
andrewseguin merged 4 commits into
angular:masterfrom
mmalerba:lazy
Mar 19, 2019
Merged

chore(dev-app): add lazy loading#15522
andrewseguin merged 4 commits into
angular:masterfrom
mmalerba:lazy

Conversation

@mmalerba

Copy link
Copy Markdown
Contributor

@googlebotgooglebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 18, 2019

@devversiondevversion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's awesome. 🎉

@CaerusKaru

Copy link
Copy Markdown
Member

Getting a StaticInjectorError(MainModule)[SnackBarDemo -> Dir] when navigating: landing -> card -> snackbar

@devversion

Copy link
Copy Markdown
Member

I got the same today when I wanted to switch the dev-app to Bazel with AOT compilation. Even though it didn't use lazy-loading, I hit the same issue. That's pretty weird.

@mmalerba

Copy link
Copy Markdown
ContributorAuthor

I probably missed a module dependency in #15498, I'll add the fix to this PR

@mmalerba

Copy link
Copy Markdown
ContributorAuthor

It looks like the issue was due to the router-outlet being outside the tree where the Dir was provided. I also can't simply move the Dir up a component because that would cause the dev-app chrome to switch into RTL too. To solve it I wound up creating a custom root Directionality that allows its direction to be set

@mmalerbammalerba added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Mar 19, 2019
@andrewseguin
andrewseguin merged commit 1dce080 into angular:masterMar 19, 2019
kara added a commit that referenced this pull request Mar 20, 2019
devversion added a commit to devversion/material2 that referenced this pull request Mar 20, 2019
jelbourn pushed a commit that referenced this pull request Mar 21, 2019
* Revert "Revert "chore(dev-app): add lazy loading (#15522)""
This reverts commit 44f185b.
* build: serve ivy dev-app with lazy loading
* Updates the Ivy script/build pipeline to support lazy-loading with the dev-app.
* Removes duplicate lazy routes (otherwise causes error within rollup)
* Ensures Ivy Angular install script ensures clean Ivy packages are installed
* Ensures Ivy `build.sh` script works if Gulp is not installed globally.
andrewseguin pushed a commit that referenced this pull request Mar 25, 2019
* dev-app: add lazy loading
* fix snackbar RTL
* fix lint
* fix aot build
JoostK pushed a commit to JoostK/components that referenced this pull request May 7, 2019
JoostK pushed a commit to JoostK/components that referenced this pull request May 7, 2019
* Revert "Revert "chore(dev-app): add lazy loading (angular#15522)""
This reverts commit 44f185b.
* build: serve ivy dev-app with lazy loading
* Updates the Ivy script/build pipeline to support lazy-loading with the dev-app.
* Removes duplicate lazy routes (otherwise causes error within rollup)
* Ensures Ivy Angular install script ensures clean Ivy packages are installed
* Ensures Ivy `build.sh` script works if Gulp is not installed globally.
JoostK pushed a commit to JoostK/components that referenced this pull request Jul 9, 2019
JoostK pushed a commit to JoostK/components that referenced this pull request Jul 9, 2019
* Revert "Revert "chore(dev-app): add lazy loading (angular#15522)""
This reverts commit 44f185b.
* build: serve ivy dev-app with lazy loading
* Updates the Ivy script/build pipeline to support lazy-loading with the dev-app.
* Removes duplicate lazy routes (otherwise causes error within rollup)
* Ensures Ivy Angular install script ensures clean Ivy packages are installed
* Ensures Ivy `build.sh` script works if Gulp is not installed globally.
@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 10, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: mergeThe PR is ready for merge by the caretakercla: yesPR author has agreed to Google's Contributor License Agreementtarget: patchThis PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@mmalerba@CaerusKaru@devversion@googlebot@andrewseguin