SlideShare a Scribd company logo
Tutorial
Develop Mobile Applications with AngularJS
Developing Mobile Applications
Training in Bangalore
Native Look & Feel
Web-Technologies (HTML, JavaScript, CSS)
Setup
Architecture
Development
APIs
WHAT IT'S ALL ABOUT
SETUP
Installed and in Path:
Node.JS - node - brew install node
Node Package Manager - npm
Git - git - brew install git
Ruby - ruby
Compass - compass - [sudo] gem install compass
Optional:
Android SDK
developer.android.com/sdk (http://developer.android.com/sdk/index.html) or brew install android
Launch Android SDK Manager ( android or Help (http://developer.android.com/tools/help/sdk-manager.html))
Install Following Packages:
Xcode and iOS 7 Simulator on MacOS
Apache Cordova - [sudo] npm install -g cordova
Ionic - [sudo] npm install -g ionic
Optional:
Ripple Emulator - [sudo] npm install -g ripple-emulator
iOS Sim - [sudo] npm install -g ios-sim
ARCHITECTUE
WebView
Mobile OS
AngularJS
THE BIG PICTURE
Application
Ionic
Cordova
Better Known as PhoneGap (http://phonegap.com/)
Nitobi Adobe Apache
Native Wrapper for Web-App
Mixing Native- and Web-Code
Plugins for Feature Access
cordova.apache.org (http://cordova.apache.org/)
Current Version: 3.4.1
License: Apache 2.0
229 Plugins
Native JavaScript
org.apache.cordova
Camera
Battery Status
Console
Contacts
Device Information + Motion + Orientation
Dialogs
File + File Transfer
CORDOVA PLUGINS
Distributioin of Cordova
Services like PhoneGap Build
phonegap.com (http://phonegap.com/)
Developed by Adobe
License: Apache 2.0
HTML enhanced for web apps!
angularjs.org
JavaScript-Framework for Rich Browser Applications
Brings Core UI Concepts like MVC to Browser
Extends HTML instead of abstract it
Lets You Extend HTML to Your Needs (Directives)
angularjs.org (https://angularjs.org/)
Current Version: 1.2.16
License: MIT
by
Frontend-Framework
CSS Optimized for Mobile App
AngularJS Directives and Services
Touch Support
Navigation
Menus & Dialogs
Cordova Plugin(s)
ionicframework.com(http://ionicframework.com/)
Current Version: 1.0.0-beta.6
License: MIT
Similar to Ionic
Frontend-Framework
Cordova and AngularJS based
Directives and Services
onsenui.io (http://onsenui.io/)
Current Version 1.0.4
License: Apache 2.0
OUR FIRST APP
Create and Navigate to an Empty Folder
Run ionic start myFirstApp tabs to Create a New Ionic Application
Navigate to Project Folder cd myFirstApp
Run ionic serve (Ignore Error on Console)
Browser to http://localhost:8100 (http://localhost:8100)
Play around with the App!
Kill Dev-Server in Console with CTRL+C
Do the Same Again with ionic start mySecondApp sidemenu
HANDSON
PROJECT STRUCTURE
Cordova
hooks
merges
platforms
plugins
www
config.xml
Ionic
ionic.project
Custom
scss
bower.json
Gulpfile.js
package.json
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.ionicframework.starter" version="0.0.1" xmlns="http://www.w3.org/ns/w
idgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloCordova</name>
<description>
An Ionic Framework and Cordova project.
</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">
Ionic Framework Team
</author>
<content src="index.html" />
<access origin="*" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<!-- Don't store local date in an iCloud backup. Turn this to "cloud" to enable s
torage
to be sent to iCloud. Note: enabling this could result in Apple rejecting yo
ur app.
-->
<preference name="BackupWebStorage" value="none" />
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true" />
</feature>
</widget>
CONFIG.XML
TOOLS
Required to Configure and Build Cordova Project
Run cordova to See All Available Commands
Commands to Configure Project
Commands to Build Project
CORDOVA CLI
Ionic Consists of Two Things:
Framework (also Available via Bower)
Command Line Interface (via NPM)
CLI Not Required to Develop Ionic App
Different Versioning
Run ionic to See All Available Commands
Shortcuts to Cordova CLI
create and serve
login and upload
IONIC CLI
Node Package, Installed via npm install -g ripple-emulator
Emulates Android Device in Browser
Requires Android as Platform
Start Server and Open Browser: ripple emulate
RIPPLE EMULATOR
Android
Android SDK Required
cordova platform add android or ionic platform android
cordova emulate android or ionic emulate android
Take a Nap or Drink Some Coffee ...
iOS
Xcode, iOS Simulator and ios-sim Required
cordova platform add ios or ionic platform ios
cordova emulate ios or ionic emulate ios
PLATFORM SIMULATORS
Create a New Cordova Project (not Ionic)
Compare Project Structure to Ionic Project (config.xml)
Delete Cordova Project
Add Android Platform to Ionic Project via ionic
Remove Android Platform via cordova
Add Android Platform Again via cordova
Run ionic serve , Open App in Browser and Check Console for JS Errors
Run Ripple Emulator and Check Console for JS Errors
Run cordova serve , Open App in Browser and Check Console for JS Errors
HANDSON
APIS
API Documentation: docs.angularjs.org/api (https://docs.angularjs.org/api)
Pay Attention: Documentation for latest Build (Select Box at The Top Left Corner)
Basic Tutorial: docs.angularjs.org/tutorial (https://docs.angularjs.org/tutorial)
Great Tutorial Videos: egghead.io (https://egghead.io/)
ANGULARJS
API Doc and Guides at ionicframework.com/docs (http://ionicframework.com/docs/)
Lot of Live Demos and Code Examples
All Directive Starts with Prefix ion (Nice!)
All Services Uses $ionic Prefix (Bad Practice?)
Uses Angular-UI Router
IONIC
OPTIMISATION
Avoid Overlapping Elements (Popups, Overlays)
Try to Keep the DOM Small, Create Multiple Small States
HTML Tables Are Sluggish
Transport Really Needed Data Only
Use Caching
Minimize Code
Test Performance on Real and Old Devices
PERFORMANCE HINTS
Subfolders in hooks
Something Executable (with Hash-Bang)
See README (https://github.com/apache/cordova-lib/blob/master/cordova-lib/templates/hooks-README.md) for a List Of Available Hooks
Can Be Used to Build Frontend (Modify www Content)
Pay Attention: No www Folder No Valid Cordova Project!
HOOKS
FABULOUS ANGULARJS BUILD SYSTEM
Helps to Structure Code
Dev-Mode with Server, Proxy and LiveReload
SASS 3.2 and LESS 1.5 support
Spec and End-2-End Test
Mock Data for Tests and Dev-Mode
Running Bower to Install and Update Frontend Dependencies
Project- and Per-Developer Configuration as well as Command Line Arguments
Building Distribution with
Annotating AngularJS Dependencies (Transform to Array-Notation)
Code Minimization
Running End-2-End Tests Against Build Application
FABS
Clone GitHub Repo pburgmer/et-ka-2014-ionic-tutorial-app (https://github.com/pburgmer/et-ka-2014-ionic-tutorial-app)
to Get an Ionic App with fabs as Build-System
Run npm install in Project Folder
Create before_prepare Hook
Run Grunt Build: grunt clean prepare compile
Create a Symlink (if not exists) from build-output/compiled to www
or Clean www and Copy Content from build-output/compiled to It
Add Android as Platform
Run cordova prepare
Take a Look at platform/android/www to Ensure Minified Version Is Used
HANDSON
TIB Academy
Second Floor and Third Floor,
5/3 BEML Layout,
Varathur Road,
Thubarahalli,
Kundalahalli Gate,
Bangalore – 66
Landmark – Behind Kundalahalli Gate bus stop,
Opposite to
SKR Convention Mall,
Next to AXIS Bank.

More Related Content

PDF
Ionic adventures - Hybrid Mobile App Development rocks
PDF
Intro to PhoneGap
PDF
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
PDF
Vietnam qa meetup
PDF
Chrome Devtools Protocol via Selenium/Appium (English)
PDF
Apps with Apache Cordova and Phonegap
PDF
Hybrid Apps with Ionic Framework
PPTX
Introduction to Apache Cordova (Phonegap)
Ionic adventures - Hybrid Mobile App Development rocks
Intro to PhoneGap
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
Vietnam qa meetup
Chrome Devtools Protocol via Selenium/Appium (English)
Apps with Apache Cordova and Phonegap
Hybrid Apps with Ionic Framework
Introduction to Apache Cordova (Phonegap)

What's hot (20)

PDF
*Webinar* Learn from the Experts: How to Boost Test Coverage with Automated V...
PPTX
PhoneGap Day 2016 EU: Creating the Ideal Cordova Dev Environment
PDF
Universal JS Web Applications with React - Luciano Mammino - Codemotion Rome ...
PDF
iOS Parallel Automation: run faster than fast — Viktar Karanevich — SeleniumC...
ODP
Apache Cordova, Hybrid Application Development
PPTX
Introdução Ionic Framework - Meetup SP
PDF
Ionic - Revolutionizing Hybrid Mobile Application Development
PPTX
High Performance Snippets
PDF
A Gentle Introduction to Angular Schematics - Angular SF 2019
PDF
When Web meet Native App
PPTX
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
PDF
Apache cordova
PDF
Cordova Tutorial
PDF
Web APIs & Apps - Mozilla
PPTX
Debugging IE Performance Issues with xperf, ETW and NavigationTiming
PDF
Cordova + Ionic + MobileFirst
PDF
Chrome Devtools Protocol via Selenium/Appium (Japanese)
PDF
Clojure Web Development
PDF
"Will Git Be Around Forever? A List of Possible Successors" at UtrechtJUG
PDF
Cordova: APIs and instruments
*Webinar* Learn from the Experts: How to Boost Test Coverage with Automated V...
PhoneGap Day 2016 EU: Creating the Ideal Cordova Dev Environment
Universal JS Web Applications with React - Luciano Mammino - Codemotion Rome ...
iOS Parallel Automation: run faster than fast — Viktar Karanevich — SeleniumC...
Apache Cordova, Hybrid Application Development
Introdução Ionic Framework - Meetup SP
Ionic - Revolutionizing Hybrid Mobile Application Development
High Performance Snippets
A Gentle Introduction to Angular Schematics - Angular SF 2019
When Web meet Native App
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Apache cordova
Cordova Tutorial
Web APIs & Apps - Mozilla
Debugging IE Performance Issues with xperf, ETW and NavigationTiming
Cordova + Ionic + MobileFirst
Chrome Devtools Protocol via Selenium/Appium (Japanese)
Clojure Web Development
"Will Git Be Around Forever? A List of Possible Successors" at UtrechtJUG
Cordova: APIs and instruments
Ad

Similar to Angularjs Tutorial for Beginners (20)

PDF
Tutorial: Develop Mobile Applications with AngularJS
PDF
Cross Platform Mobile Apps with the Ionic Framework
PDF
Developing ionic apps for android and ios
PDF
Crash Course in AngularJS + Ionic (Deep dive)
PPTX
Pemrograman mobile menggunakan ionic framework
PPTX
Intro to Ionic for Building Hybrid Mobile Applications
PPTX
Workshop on Hybrid App Development with Ionic Framework
PDF
Ionic Hybrid Mobile Application
PDF
Creating an hybrid app in minutes with Ionic Framework
PPTX
Building an Ionic hybrid mobile app with TypeScript
PDF
Intro to mobile apps with the ionic framework & angular js
PPTX
Developing Hybrid Applications with IONIC
PPTX
Hybrid Mobile Development with Apache Cordova,AngularJs and ionic
PPTX
Ionic Framework - get up and running to build hybrid mobile apps
PPTX
Building mobile app with Ionic Framework
PDF
Workshop Ionic Framework - CC FE & UX
PDF
Hybrid app development with ionic
PDF
Cross Platform Mobile Apps with the Ionic Framework
PDF
Mobile app development with Ionic cross platform apps with Ionic Angular and ...
Tutorial: Develop Mobile Applications with AngularJS
Cross Platform Mobile Apps with the Ionic Framework
Developing ionic apps for android and ios
Crash Course in AngularJS + Ionic (Deep dive)
Pemrograman mobile menggunakan ionic framework
Intro to Ionic for Building Hybrid Mobile Applications
Workshop on Hybrid App Development with Ionic Framework
Ionic Hybrid Mobile Application
Creating an hybrid app in minutes with Ionic Framework
Building an Ionic hybrid mobile app with TypeScript
Intro to mobile apps with the ionic framework & angular js
Developing Hybrid Applications with IONIC
Hybrid Mobile Development with Apache Cordova,AngularJs and ionic
Ionic Framework - get up and running to build hybrid mobile apps
Building mobile app with Ionic Framework
Workshop Ionic Framework - CC FE & UX
Hybrid app development with ionic
Cross Platform Mobile Apps with the Ionic Framework
Mobile app development with Ionic cross platform apps with Ionic Angular and ...
Ad

More from rajkamaltibacademy (17)

PPT
Corejava Training in Bangalore Tutorial
PPT
Informatica Training Tutorial
PPT
AWS Training Tutorial for Freshers
PPT
.Net Training Tutorial
PPT
CCNA Training Tutorial in bangaore
PPT
Django Training Tutorial in Bangalore
PPT
Python Training Tutorial for Frreshers
PPT
Oracle Training Tutorial for Beginners
PPT
Mongodb Training Tutorial in Bangalore
PPTX
Angular Tutorial Freshers and Experienced
PPTX
Python Tutorial for Beginner
PPTX
Teradata Tutorial for Beginners
PPT
Best Core Java Training In Bangalore
PPTX
R Programming Tutorial for Beginners - -TIB Academy
PPTX
Selenium tutorial to Beginners
PPTX
Hadoop Training Tutorial for Freshers
PPTX
Python Tutorial for Beginner
Corejava Training in Bangalore Tutorial
Informatica Training Tutorial
AWS Training Tutorial for Freshers
.Net Training Tutorial
CCNA Training Tutorial in bangaore
Django Training Tutorial in Bangalore
Python Training Tutorial for Frreshers
Oracle Training Tutorial for Beginners
Mongodb Training Tutorial in Bangalore
Angular Tutorial Freshers and Experienced
Python Tutorial for Beginner
Teradata Tutorial for Beginners
Best Core Java Training In Bangalore
R Programming Tutorial for Beginners - -TIB Academy
Selenium tutorial to Beginners
Hadoop Training Tutorial for Freshers
Python Tutorial for Beginner

Recently uploaded (20)

PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Introduction and Scope of Bichemistry.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
DOCX
UPPER GASTRO INTESTINAL DISORDER.docx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
PPTX
How to Manage Starshipit in Odoo 18 - Odoo Slides
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Anesthesia in Laparoscopic Surgery in India
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
STATICS OF THE RIGID BODIES Hibbelers.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Introduction and Scope of Bichemistry.pptx
O7-L3 Supply Chain Operations - ICLT Program
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
Week 4 Term 3 Study Techniques revisited.pptx
UPPER GASTRO INTESTINAL DISORDER.docx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
How to Manage Starshipit in Odoo 18 - Odoo Slides
human mycosis Human fungal infections are called human mycosis..pptx
O5-L3 Freight Transport Ops (International) V1.pdf

Angularjs Tutorial for Beginners

  • 2. Developing Mobile Applications Training in Bangalore Native Look & Feel Web-Technologies (HTML, JavaScript, CSS) Setup Architecture Development APIs WHAT IT'S ALL ABOUT
  • 4. Installed and in Path: Node.JS - node - brew install node Node Package Manager - npm Git - git - brew install git Ruby - ruby Compass - compass - [sudo] gem install compass
  • 5. Optional: Android SDK developer.android.com/sdk (http://developer.android.com/sdk/index.html) or brew install android Launch Android SDK Manager ( android or Help (http://developer.android.com/tools/help/sdk-manager.html)) Install Following Packages: Xcode and iOS 7 Simulator on MacOS
  • 6. Apache Cordova - [sudo] npm install -g cordova Ionic - [sudo] npm install -g ionic Optional: Ripple Emulator - [sudo] npm install -g ripple-emulator iOS Sim - [sudo] npm install -g ios-sim
  • 8. WebView Mobile OS AngularJS THE BIG PICTURE Application Ionic Cordova
  • 9. Better Known as PhoneGap (http://phonegap.com/) Nitobi Adobe Apache Native Wrapper for Web-App Mixing Native- and Web-Code Plugins for Feature Access cordova.apache.org (http://cordova.apache.org/) Current Version: 3.4.1 License: Apache 2.0
  • 10. 229 Plugins Native JavaScript org.apache.cordova Camera Battery Status Console Contacts Device Information + Motion + Orientation Dialogs File + File Transfer CORDOVA PLUGINS
  • 11. Distributioin of Cordova Services like PhoneGap Build phonegap.com (http://phonegap.com/) Developed by Adobe License: Apache 2.0
  • 12. HTML enhanced for web apps! angularjs.org JavaScript-Framework for Rich Browser Applications Brings Core UI Concepts like MVC to Browser Extends HTML instead of abstract it Lets You Extend HTML to Your Needs (Directives) angularjs.org (https://angularjs.org/) Current Version: 1.2.16 License: MIT by
  • 13. Frontend-Framework CSS Optimized for Mobile App AngularJS Directives and Services Touch Support Navigation Menus & Dialogs Cordova Plugin(s) ionicframework.com(http://ionicframework.com/) Current Version: 1.0.0-beta.6 License: MIT
  • 14. Similar to Ionic Frontend-Framework Cordova and AngularJS based Directives and Services onsenui.io (http://onsenui.io/) Current Version 1.0.4 License: Apache 2.0
  • 16. Create and Navigate to an Empty Folder Run ionic start myFirstApp tabs to Create a New Ionic Application Navigate to Project Folder cd myFirstApp Run ionic serve (Ignore Error on Console) Browser to http://localhost:8100 (http://localhost:8100) Play around with the App! Kill Dev-Server in Console with CTRL+C Do the Same Again with ionic start mySecondApp sidemenu HANDSON
  • 18. <?xml version='1.0' encoding='utf-8'?> <widget id="com.ionicframework.starter" version="0.0.1" xmlns="http://www.w3.org/ns/w idgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>HelloCordova</name> <description> An Ionic Framework and Cordova project. </description> <author email="hi@ionicframework" href="http://ionicframework.com/"> Ionic Framework Team </author> <content src="index.html" /> <access origin="*" /> <preference name="fullscreen" value="true" /> <preference name="webviewbounce" value="false" /> <preference name="UIWebViewBounce" value="false" /> <preference name="DisallowOverscroll" value="true" /> <!-- Don't store local date in an iCloud backup. Turn this to "cloud" to enable s torage to be sent to iCloud. Note: enabling this could result in Apple rejecting yo ur app. --> <preference name="BackupWebStorage" value="none" /> <feature name="StatusBar"> <param name="ios-package" value="CDVStatusBar" onload="true" /> </feature> </widget> CONFIG.XML
  • 19. TOOLS
  • 20. Required to Configure and Build Cordova Project Run cordova to See All Available Commands Commands to Configure Project Commands to Build Project CORDOVA CLI
  • 21. Ionic Consists of Two Things: Framework (also Available via Bower) Command Line Interface (via NPM) CLI Not Required to Develop Ionic App Different Versioning Run ionic to See All Available Commands Shortcuts to Cordova CLI create and serve login and upload IONIC CLI
  • 22. Node Package, Installed via npm install -g ripple-emulator Emulates Android Device in Browser Requires Android as Platform Start Server and Open Browser: ripple emulate RIPPLE EMULATOR
  • 23. Android Android SDK Required cordova platform add android or ionic platform android cordova emulate android or ionic emulate android Take a Nap or Drink Some Coffee ... iOS Xcode, iOS Simulator and ios-sim Required cordova platform add ios or ionic platform ios cordova emulate ios or ionic emulate ios PLATFORM SIMULATORS
  • 24. Create a New Cordova Project (not Ionic) Compare Project Structure to Ionic Project (config.xml) Delete Cordova Project Add Android Platform to Ionic Project via ionic Remove Android Platform via cordova Add Android Platform Again via cordova Run ionic serve , Open App in Browser and Check Console for JS Errors Run Ripple Emulator and Check Console for JS Errors Run cordova serve , Open App in Browser and Check Console for JS Errors HANDSON
  • 25. APIS
  • 26. API Documentation: docs.angularjs.org/api (https://docs.angularjs.org/api) Pay Attention: Documentation for latest Build (Select Box at The Top Left Corner) Basic Tutorial: docs.angularjs.org/tutorial (https://docs.angularjs.org/tutorial) Great Tutorial Videos: egghead.io (https://egghead.io/) ANGULARJS
  • 27. API Doc and Guides at ionicframework.com/docs (http://ionicframework.com/docs/) Lot of Live Demos and Code Examples All Directive Starts with Prefix ion (Nice!) All Services Uses $ionic Prefix (Bad Practice?) Uses Angular-UI Router IONIC
  • 29. Avoid Overlapping Elements (Popups, Overlays) Try to Keep the DOM Small, Create Multiple Small States HTML Tables Are Sluggish Transport Really Needed Data Only Use Caching Minimize Code Test Performance on Real and Old Devices PERFORMANCE HINTS
  • 30. Subfolders in hooks Something Executable (with Hash-Bang) See README (https://github.com/apache/cordova-lib/blob/master/cordova-lib/templates/hooks-README.md) for a List Of Available Hooks Can Be Used to Build Frontend (Modify www Content) Pay Attention: No www Folder No Valid Cordova Project! HOOKS
  • 31. FABULOUS ANGULARJS BUILD SYSTEM Helps to Structure Code Dev-Mode with Server, Proxy and LiveReload SASS 3.2 and LESS 1.5 support Spec and End-2-End Test Mock Data for Tests and Dev-Mode Running Bower to Install and Update Frontend Dependencies Project- and Per-Developer Configuration as well as Command Line Arguments Building Distribution with Annotating AngularJS Dependencies (Transform to Array-Notation) Code Minimization Running End-2-End Tests Against Build Application FABS
  • 32. Clone GitHub Repo pburgmer/et-ka-2014-ionic-tutorial-app (https://github.com/pburgmer/et-ka-2014-ionic-tutorial-app) to Get an Ionic App with fabs as Build-System Run npm install in Project Folder Create before_prepare Hook Run Grunt Build: grunt clean prepare compile Create a Symlink (if not exists) from build-output/compiled to www or Clean www and Copy Content from build-output/compiled to It Add Android as Platform Run cordova prepare Take a Look at platform/android/www to Ensure Minified Version Is Used HANDSON
  • 33. TIB Academy Second Floor and Third Floor, 5/3 BEML Layout, Varathur Road, Thubarahalli, Kundalahalli Gate, Bangalore – 66 Landmark – Behind Kundalahalli Gate bus stop, Opposite to SKR Convention Mall, Next to AXIS Bank.