Nick Branstein
Senior Consultant @ KiZAN Technologies
Video game lover and enthusiast
Cleveland sports fan
Twitter: @nickbranstein
Blog: brosteins.com
Everyone loves bad jokes right?
Widely used
Opinionated and structured
Skills I know (HTML, CSS, JS/TS)
Well supported
I thought we were making mobile apps...
How?
Mobile App Type | Framework |
---|---|
native | Android, iOS |
hybrid | PhoneGap/Cordova |
cross compiled | Xamarin |
JIT compiled | NativeScript |
Skills you may know
Access to native APIs
Easy to convert an existing Angular app to NativeScript with Angular
npm install -g nativescript
tns create jokes-tns
--template nativescript-template-ng-tutorial
HTML | NativeScript |
---|---|
div, span | layouts: stack, grid, wrap, absolute + more |
label, p / h / other text | label |
button, input | button, textfield |
datepicker, listview, listpicker + more |
Angular
<div class="row">
<div class="col-md-12 center">
<button class="btn btn-primary">Random Joke</button>
NativeScript with Angular
<StackLayout orientation="vertical">
<Label text="Welcome to Jokes NS!"></Label>
<StackLayout orientation="horizontal">
<Button text="Random Joke"></Button>
Angular
import { RouterModule } from '@angular/router';
NativeScript with Angular
import { NativeScriptRouterModule } from "nativescript-angular/router";
Angular
<div class="row">
<div class="col-md-12 center">
<button class="btn btn-primary" (click)="randomClick()">Random Joke</button>
NativeScript with Angular
<StackLayout orientation="vertical">
<Label text="Welcome to Jokes NS!"></Label>
<StackLayout orientation="horizontal">
<Button text="Random Joke" (tip)="randomClick()"></Button>
Angular directives such as ngFor
<div class="row" *ngFor="let joke of allJokes()"
NativeScript with Angular
<StackLayout *ngFor="let item of allJokes()"
No better time to make a mobile app then now
Angular + NativeScript lower the barrier to entry for mobile apps
Converting an Angular app to a mobile app is an easy process
Available now!
@nickbranstein
brosteins.com
https://github.com/NickBranstein/Presentations