Skip to content

Instantly share code, notes, and snippets.

@vchimev
Last active January 10, 2019 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vchimev/f127ac7773ca69173df8ca7a8bb84484 to your computer and use it in GitHub Desktop.
Save vchimev/f127ac7773ca69173df8ca7a8bb84484 to your computer and use it in GitHub Desktop.
NativeScript-Angular HMR Smoke Tests

NativeScript-Angular HMR

Setup

  • create a master-detail application and update its dependencies/configs:
tns create my-master-detail-ng --template https://github.com/NativeScript/template-master-detail-ng
  • run the application:
tns run platform --hmr

Lazy Modules

  • change car-list.component.html: ActionBar's text
  • change accepted, app bootstraped, change applied

Application Styles

  • navigate to a detail
  • change app.platform.scss: Label's color
  • change accepted, no reload/restart, change applied
  • navigate back to list
  • change applied to the list

Eager Modules

  • change app.component.ts: console.log()
  • change accepted, app bootstraped, change applied

Additional

App Restart

  • stop/star the app
  • lazy and eager modules changes applied, application styles - not

Not Accepted Modules

  • change main.ts: console.log()
  • change not accepted, bundle.js transferred, app restarted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment