Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
AngularJS Deployment Essentials

You're reading from   AngularJS Deployment Essentials

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781783983582
Length 148 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Zachariah Moreno Zachariah Moreno
Author Profile Icon Zachariah Moreno
Zachariah Moreno
Arrow right icon
View More author details
Toc

From Angular web applications to hybrid mobile apps with Cordova


With all the necessary tools installed, your environment configured, and your Angular application developed, you are all set to begin moving your Angular application from the browser to Android. To get the ball rolling with Cordova, you can run the following command from within the root folder of your Angular application's source code:

$ cordova create <subfolder-containing-all-cordova-code> <reverse-url-of-app> <cordova-app-name>

I prefer to name the folder that will contain all the Cordova generated code/mobile app because it will contain all future mobile applications you intend to create such as iOS, Android, and so on. Because I followed this standard, my command was as follows:

Now that you have scaffolded the foundation of your future mobile application, you are free to add the platforms you'd like to package. To do so, run the following command:

$ cordova platform add android

The output is as shown...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image