tns run <platform>

The tns run <platform> command will automatically build your app and sync it up to the devices and emulators. It will do all the heavy-lifting to try and make your app be in a running state on the device, and then it will launch the app. This command has changed over the years and has now become a fairly smart command that will automatically make certain choices to simplify your development life. One of the cool features of this command is that it will sync your application to all running and connected devices. If you have five different devices hooked up, all five of them will receive the changes. This only works per each platform, but you can run tns run ios in one and tns run android in another command window, and then ...

Get NativeScript for Angular Mobile Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.