You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
feat(Angular): apply changes in application styles at runtime with HMR (#748)
* feat(Angular): apply changes in application styles at runtime with HMR
* refactor(HMR): unify snippet for different flavors
`global.__hmrInitialSync` is no more used
`global.__hmrNeedReload` is removed:
- on changes in multiple files (app.css, main-page.css, main-page.xml,
main-page.ts) both *reapply styles* and *navigate* logic need to execute
- this is important for the bootstrap of Angular apps
* refactor(HMR): unify snippet for different flavors
Remove `hmrUpdate()` from `main.ts` as a duplication of `global.__onLiveSync()`.
`global.__onLiveSync()` ensures all patches get to the bundle.
* fix(HMR): initial updates on app restart
// A traditional NativeScript application starts by initializing global objects, setting up global CSS rules, creating, and navigating to the main page.
7
23
// Angular applications need to take care of their own initialization: modules, components, directives, routes, DI providers.
8
24
// A NativeScript Angular app needs to make both paradigms work together, so we provide a wrapper platform object, platformNativeScriptDynamic,
9
25
// that sets up a NativeScript application and can bootstrap the Angular framework.
0 commit comments