SlideShare a Scribd company logo
Mobile Programing
with Ionic
Framework++
PUGUH RISMADI ISMAIL
Ionic Framework inside
Mobile Hybrid Architecture
SETUP ENVIRONTMENT
Install npm (Node.js package)
Install Bower via console : npm install bower -g
Install git (download: http://git-scm.com/downloads) or via console npm install git –g
Install Gulp : via console npm install gulp –g
Install ionic Running Console (CMD/terminal) : npm –install –g ionic
In Console(CMD): npm ionic lib update
Cek Installed Component
Git : git --version
Bower : bower –v
Npm : npm -v
Gulp : gulp -v
Ionic : ionic -v
Cordova : cordova -v
Pemrograman mobile menggunakan ionic framework
Update environment to last release
After check component may have some issue like this
Install ios-sim and deploy ios
application to devices
Pemrograman mobile menggunakan ionic framework
Test Project
Pemrograman mobile menggunakan ionic framework
Structure project
If you open the chapter2 example1 folder in your text editor, you should see the
following folder structure at the root of the project:
.
├── bower.json
├── config.xml
├── gulpfile.js
├── hooks
├── ionic.project
├── package.json
├── plugins
├── scss
└── www
Description
Here is a quick explanation of each of the items:
bower.json: This consists of the dependencies loaded via Bower. In future,we will install other
Bower packages to be used along with our app. All the information regarding the same will be
available here.
config.xml: This file consists of all the meta information needed by Cordova while converting
your Ionic app to a platform-specific installer. If you open config.xml, you will see a bunch of
XML tags that describes your project. We will take a look at this file in detail again.
gulpfile.js: This file consists of the build tasks that we would be using while developing the Ionic
app.
ionic.project: This file consists of the information regarding the Ionic app.
Hooks :
hooks: This folder consists of scripts that get executed when a particular
Cordova task is performed. A Cordova task can be any of the following:
after_platform_add (after a new platform is added), after_plugin_add
(after a new plugin is added), before_emulate (before emulation begins),
after_run (before the app run), and so on. Each task is placed inside a folder
named after the Cordova task. If you open the hooks folder, you will see
an after_prepare folder and a README.md file. Inside the after_prepare
folder, you will find a script file named 010_add_platform_class.js. This
will get executed after the prepare task of Cordova is executed. All that this
task does is add a class to the <body> tag, which is the same name as the
platform on which the app is running. This would help us in styling the app
better, based on the platform. You can find a list of tasks that you
plugins: This folder consists of all the plugins added to the project. We will
be adding a few more plugins later on, and you can see them reflected here.
scss: This folder consists of the base scss file which we will be overwriting
to customize the styles of the Ionic components.
www: This folder consists of the Ionic code. Anything you write inside this
folder is intended to land inside the web view. This is where we will be
spending most of our time.
www folder
The www folder
As mentioned earlier, this folder consists of our Ionic app, the HTML, CSS, and JS
codes. If you open the www folder, you will find the following file structure:
Description www folder
index.html: This is the application startup file. If you remember, in config.xml, we pointed the
src on the content tag to this file. Since we are using AngularJS as our JavaScript framework, this
file would ideally act as the base/first page for the Single Page Application (SPA). If you open
index.html, you can see that the body tag has the ng-app attribute which points tothe starter
module defined inside the js/app.js file.
css: This folder consists of styles that are specific to our app.
img: This folder consists of images that are specific to our app.
js: This folder consists of the JavaScript code specific to our app. This is where we write the
AngularJS code. If you open the app.js file present inside this folder, you can see that an
AngularJS module is set up, passing in Ionic as a dependency
1st Project Sample
1. View Template (single/partial).
2. Apps.js (whatever)
3. Controller (angular)
4. Data Service (angular Module)
Template single page
Template Index.html
App.js
Data Service

More Related Content

What's hot (20)

PPT
Eclipse IDE
Anirban Majumdar
 
PPTX
ReactJS
Fatih Şimşek
 
PDF
Angular Part 3 (Basic knowledge)
Rohit Singh
 
PPTX
Hybrid Apps in a Snap
Paulina Gallo
 
PPT
Introduction to Eclipse IDE
Muhammad Hafiz Hasan
 
PDF
Drone Continuous Integration
Daniel Cerecedo
 
ODP
Quality Assurance using the Eclipse IDE
Eduard Moraru
 
PPTX
Presentation1
Kshitiz Rimal
 
PPTX
Plugins debugging and developing
briancolinger
 
PDF
Golang for PHP Developers: Dependency management with Glide
Richard Tuin
 
ODP
Jenkins and rails app - Le Dinh Vu
Framgia Vietnam
 
PDF
Tomcat Maven Plugin
Olivier Lamy
 
PDF
Cocoa pods
CocoaHeads France
 
PDF
Getting started with add ons
CS Simple education
 
PDF
Working with Xcode and Swift Package Manager
Jens Ravens
 
PDF
[Osxdev]extensions
NAVER D2
 
PDF
Scale your Magento app with Elastic Beanstalk
Corley S.r.l.
 
PPTX
Seven Habits of Highly Effective Jenkins Users (2014 edition!)
Andrew Bayer
 
PPTX
Spring boot
Pradeep Shanmugam
 
PPTX
Gdg ionic 2
Shang Yi Lim
 
Eclipse IDE
Anirban Majumdar
 
Angular Part 3 (Basic knowledge)
Rohit Singh
 
Hybrid Apps in a Snap
Paulina Gallo
 
Introduction to Eclipse IDE
Muhammad Hafiz Hasan
 
Drone Continuous Integration
Daniel Cerecedo
 
Quality Assurance using the Eclipse IDE
Eduard Moraru
 
Presentation1
Kshitiz Rimal
 
Plugins debugging and developing
briancolinger
 
Golang for PHP Developers: Dependency management with Glide
Richard Tuin
 
Jenkins and rails app - Le Dinh Vu
Framgia Vietnam
 
Tomcat Maven Plugin
Olivier Lamy
 
Cocoa pods
CocoaHeads France
 
Getting started with add ons
CS Simple education
 
Working with Xcode and Swift Package Manager
Jens Ravens
 
[Osxdev]extensions
NAVER D2
 
Scale your Magento app with Elastic Beanstalk
Corley S.r.l.
 
Seven Habits of Highly Effective Jenkins Users (2014 edition!)
Andrew Bayer
 
Spring boot
Pradeep Shanmugam
 
Gdg ionic 2
Shang Yi Lim
 

Viewers also liked (7)

PDF
Learning Single page Application chapter 1
Puguh Rismadi
 
PPTX
Case study: integrating azure with google app engine
Miguel Scotter
 
PDF
Membuat aplikasi quiz android dengan Intel XDK
Nur Rohman
 
PDF
Cross Platform Mobile Apps with the Ionic Framework
Troy Miles
 
PPTX
Hybrid app in ionic framework overview
Sanket Devlekar
 
PDF
Creating an hybrid app in minutes with Ionic Framework
Julien Renaux
 
PDF
Build Consumer Apps Using Mobile SDK and Ionic Framework
Salesforce Developers
 
Learning Single page Application chapter 1
Puguh Rismadi
 
Case study: integrating azure with google app engine
Miguel Scotter
 
Membuat aplikasi quiz android dengan Intel XDK
Nur Rohman
 
Cross Platform Mobile Apps with the Ionic Framework
Troy Miles
 
Hybrid app in ionic framework overview
Sanket Devlekar
 
Creating an hybrid app in minutes with Ionic Framework
Julien Renaux
 
Build Consumer Apps Using Mobile SDK and Ionic Framework
Salesforce Developers
 
Ad

Similar to Pemrograman mobile menggunakan ionic framework (20)

PPTX
Building an Ionic hybrid mobile app with TypeScript
Serge van den Oever
 
PPTX
Intro to Ionic for Building Hybrid Mobile Applications
Sasha dos Santos
 
PDF
Ionic2 First Lesson of Four
Ahmed Mahmoud Kesha
 
PPTX
Angularjs Tutorial for Beginners
rajkamaltibacademy
 
PDF
Cordova 101
Rob Dudley
 
PDF
Tutorial: Develop Mobile Applications with AngularJS
Philipp Burgmer
 
PDF
Workshop Ionic Framework - CC FE & UX
JWORKS powered by Ordina
 
PDF
Developing ionic apps for android and ios
gautham_m79
 
PPTX
[not edited] Demo on mobile app development using ionic framework
Sayed Ahmed
 
PDF
Cross Platform Mobile Apps with the Ionic Framework
Troy Miles
 
PPTX
Ionic framework
Software Infrastructure
 
PPTX
Workshop on Hybrid App Development with Ionic Framework
Aayush Shrestha
 
PDF
Crash Course in AngularJS + Ionic (Deep dive)
ColdFusionConference
 
PPTX
Ionic Mobile Applications - Hybrid Mobile Applications Without Compromises
Jacob Friesen
 
PPTX
Developing Hybrid Applications with IONIC
Fuat Buğra AYDIN
 
PDF
Intro to mobile apps with the ionic framework & angular js
Hector Iribarne
 
PDF
[2015/2016] Apache Cordova
Ivano Malavolta
 
Building an Ionic hybrid mobile app with TypeScript
Serge van den Oever
 
Intro to Ionic for Building Hybrid Mobile Applications
Sasha dos Santos
 
Ionic2 First Lesson of Four
Ahmed Mahmoud Kesha
 
Angularjs Tutorial for Beginners
rajkamaltibacademy
 
Cordova 101
Rob Dudley
 
Tutorial: Develop Mobile Applications with AngularJS
Philipp Burgmer
 
Workshop Ionic Framework - CC FE & UX
JWORKS powered by Ordina
 
Developing ionic apps for android and ios
gautham_m79
 
[not edited] Demo on mobile app development using ionic framework
Sayed Ahmed
 
Cross Platform Mobile Apps with the Ionic Framework
Troy Miles
 
Ionic framework
Software Infrastructure
 
Workshop on Hybrid App Development with Ionic Framework
Aayush Shrestha
 
Crash Course in AngularJS + Ionic (Deep dive)
ColdFusionConference
 
Ionic Mobile Applications - Hybrid Mobile Applications Without Compromises
Jacob Friesen
 
Developing Hybrid Applications with IONIC
Fuat Buğra AYDIN
 
Intro to mobile apps with the ionic framework & angular js
Hector Iribarne
 
[2015/2016] Apache Cordova
Ivano Malavolta
 
Ad

Recently uploaded (20)

PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 

Pemrograman mobile menggunakan ionic framework

  • 4. SETUP ENVIRONTMENT Install npm (Node.js package) Install Bower via console : npm install bower -g Install git (download: http://git-scm.com/downloads) or via console npm install git –g Install Gulp : via console npm install gulp –g Install ionic Running Console (CMD/terminal) : npm –install –g ionic In Console(CMD): npm ionic lib update
  • 5. Cek Installed Component Git : git --version Bower : bower –v Npm : npm -v Gulp : gulp -v Ionic : ionic -v Cordova : cordova -v
  • 7. Update environment to last release After check component may have some issue like this
  • 8. Install ios-sim and deploy ios application to devices
  • 12. Structure project If you open the chapter2 example1 folder in your text editor, you should see the following folder structure at the root of the project: . ├── bower.json ├── config.xml ├── gulpfile.js ├── hooks ├── ionic.project ├── package.json ├── plugins ├── scss └── www
  • 13. Description Here is a quick explanation of each of the items: bower.json: This consists of the dependencies loaded via Bower. In future,we will install other Bower packages to be used along with our app. All the information regarding the same will be available here. config.xml: This file consists of all the meta information needed by Cordova while converting your Ionic app to a platform-specific installer. If you open config.xml, you will see a bunch of XML tags that describes your project. We will take a look at this file in detail again. gulpfile.js: This file consists of the build tasks that we would be using while developing the Ionic app. ionic.project: This file consists of the information regarding the Ionic app.
  • 14. Hooks : hooks: This folder consists of scripts that get executed when a particular Cordova task is performed. A Cordova task can be any of the following: after_platform_add (after a new platform is added), after_plugin_add (after a new plugin is added), before_emulate (before emulation begins), after_run (before the app run), and so on. Each task is placed inside a folder named after the Cordova task. If you open the hooks folder, you will see an after_prepare folder and a README.md file. Inside the after_prepare folder, you will find a script file named 010_add_platform_class.js. This will get executed after the prepare task of Cordova is executed. All that this task does is add a class to the <body> tag, which is the same name as the platform on which the app is running. This would help us in styling the app better, based on the platform. You can find a list of tasks that you
  • 15. plugins: This folder consists of all the plugins added to the project. We will be adding a few more plugins later on, and you can see them reflected here. scss: This folder consists of the base scss file which we will be overwriting to customize the styles of the Ionic components. www: This folder consists of the Ionic code. Anything you write inside this folder is intended to land inside the web view. This is where we will be spending most of our time.
  • 16. www folder The www folder As mentioned earlier, this folder consists of our Ionic app, the HTML, CSS, and JS codes. If you open the www folder, you will find the following file structure:
  • 17. Description www folder index.html: This is the application startup file. If you remember, in config.xml, we pointed the src on the content tag to this file. Since we are using AngularJS as our JavaScript framework, this file would ideally act as the base/first page for the Single Page Application (SPA). If you open index.html, you can see that the body tag has the ng-app attribute which points tothe starter module defined inside the js/app.js file. css: This folder consists of styles that are specific to our app. img: This folder consists of images that are specific to our app. js: This folder consists of the JavaScript code specific to our app. This is where we write the AngularJS code. If you open the app.js file present inside this folder, you can see that an AngularJS module is set up, passing in Ionic as a dependency
  • 18. 1st Project Sample 1. View Template (single/partial). 2. Apps.js (whatever) 3. Controller (angular) 4. Data Service (angular Module)