~/talk

Add Native Mobile to Your Angular Projects: The Migration Story

Talkat ngVikings 2019 · 2019-05-27..05-28· [angular, react-native]
slides:none on file

Concrete migration steps for adding Native mobile to an Angular app: convert a repo with ng add @nativescript/schematics, use a naming convention that adds .tns.html and .tns.css for mobile templates, and run the web with ng serve while building mobile with tns run android --bundle / tns run ios --bundle. Schematics generate paired files and split modules, DI lets the same services use native HTTP clients, and a modified Tour of Heroes becomes a working “Two of Gods” web + native app after migrating components and templates.

AI-written summary · about

  1. 0:00Start
  2. 1:13The Goal
  3. 2:18Template
  4. 3:49NativeScriptHttpClient Module
  5. 4:45Shared Project Structure
  6. 5:37How to do code splitting?
  7. 6:39NativeScript Schematics
  8. 14:47Project Migration - web to shared
  9. 15:32Project Migration - mobile to shared
  10. 16:09Project Migration: Convert Component
  11. 26:52Migration commands
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.