O'Reilly logo

NativeScript for Angular Mobile Development by Nathanael J. Anderson, Nathan Walker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The tns create <project_name> command

This command is what we use to create a new project. This will create a new directory and install all the platform-independent code required to build a new app. The important parameters for this are --ng, which tells it to use the Angular template (which is what we are using in this book--without --ng, you get the plain JS template) and the --appid, which allows you to set your full app name. So, tns create AwesomeApp --ng --appid com.mastertechapps.awesomeapp will create a new Angular app in the AwesomeApp directory with the app ID, com.mastertechapps.awesomeapp.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required