-
Notifications
You must be signed in to change notification settings - Fork 12k
Add App Shell and Service Worker to --mobile flag #711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e2da923
to
0c57317
Compare
Remaining Todos:
Commits:
|
eaf5f38
to
6277b81
Compare
@@ -0,0 +1,35 @@ | |||
import {provide} from '@angular/core'; | |||
// import {ROUTER_PROVIDERS} from '@angular/router-deprecated'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want to keep those comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll actually remove them for now since I still have to sort out the router upgrade.
For projects that use the --mobile flag, this will cause all third-party polyfills and the system-loader script to be concatenated into a single file that can be loaded via an async script tag. This is necessary for App Shell to work properly, so that rendering won't be blocked on synchronous script loading. Note: this change still loads app and library files individually. Follow-up work should be done to further improve loading performance.
The specs fail because they are trying to require angular-cli.json which is not valid JSON anymore, since it has an expression, <% isMobile %>, which is not inside a string.
2a35ef9
to
1eebf56
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Still needs handlebars support, probably some cleanup. Pairing with @hansl