- Course by egghead.io
- Author from this repo: Francis Rodrigues
This template creates a "Hello, world" NativeScript app using TypeScript and Angular.
You can create a new app that uses this template with either the --template
option.
~$ tns create my-app-name --template tns-template-hello-world-ng
Or the --ng
shorthand.
~$ tns create my-app-name --ng
Note: Both commands will create a new NativeScript app that uses the latest version of this template published to npm.
If you want to create a new app that uses the source of the template from the master
branch, you can execute the following:
~$ tns create my-app-name --template https://github.com/NativeScript/template-hello-world-ng.git#master
NB: Please, have in mind that the master branch may refer to dependencies that are not on NPM yet!
You can watch changes in files in development mode to compile faster.
Using the --emulator
flag running in emulator:
~$ tns run android --emulator --watch
Without --emulator
flag running in device and emulator in the same time:
~$ tns run android --watch
Without platform specified it will run run on all connected devices and emulators:
~$ tns run --watch
MIT