Add Native Mobile to Your Angular Projects: The Migration Story
summary
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
chapters (11)
- 0:00Start
- 1:13The Goal
- 2:18Template
- 3:49NativeScriptHttpClient Module
- 4:45Shared Project Structure
- 5:37How to do code splitting?
- 6:39NativeScript Schematics
- 14:47Project Migration - web to shared
- 15:32Project Migration - mobile to shared
- 16:09Project Migration: Convert Component
- 26:52Migration commands
related talks
21mAdd Native Mobile to Your Angular Projects: The Migration Story
24mAdd Native Mobile to Your Angular Projects: The Migration Story
27mFrom Web to Mobile with NativeScript and Angular
31mFrom web to mobile with NativeScript and Angular
27mSharing Code Between Web and Mobile Native Apps
49mBuilding mobile apps with Angular2 and NativeScript
42mSupercharging Angular Libraries with "NG Add" and Schematics!
20mBuilding Mobile Apps with Angular and NativeScript
