An overview of ionic

Page 1

An overview of IONIC BUILDING HYBRID APPS WITH ANGULARJS AND IONIC


Table of Content  Native

v/s Hybrid.

 What

is ionic

 What

is Cordova

 Prerequisites  Setup


Native v/s Hybrid The Downside of Native.  

Proficiency in each platform. Entirely separate code bases. Timely & expensive development.

"What is the alternate?"


The Alternate is hybrid Apps 

Write once, run everywhere!!!

HTML5 that acts like native

Web wrapped in native layer

Direct access to native APIs through plugins.

Familiar web dev environment.


What is Ionic? Ionic is a hybrid concept that that uses the angular JS and apache Cordova to build the applications. Ionic uses web technologies that enables web developers to switches to mobile technologies.

Ionic features 

Created by Drifty, Co in 2013.

HTML5 framework for cross platform app.

If you know how to make website, you will be able to build real mobile app.

Uses Cordova for creating running, building, deploying mobile app


What is Cordova? Cordova formally known as phoneGap which was acquired by Adobe 2011.

Features 

Uses web technologies rather than relying on platform API's.

It enable wrapping up of web technologies code depending upon the platform.

All layout rendering is done through Web Views instead of platform native UI.

Other than ionic Cordova is used by Onseen UI, GapDebug, Visual studio, etc.


Prerequisites But before installing CLI and Cordova , we need to have Node.js (https://nodejs.org/en/)

ď ľ

$ npm install -g ionic cordova


Creating a project ď ľ

$ionic start <project_name> <set_starter_type> --type=<ionic-angular> Set_starter_type = 1. tabs, 2. blank, 3. sidemenu type = ionic-angular


Adding platform

ď ľ

We need to add the platform for the specific mobile OS

ď ľ

$ionic cordova platform add <define_type> define_type = iOS / Android.


Adding a new page ď ľ

Whenever we need to have a new page , run this command.

ď ľ

$ ionic g page <pageName>


Other Useful commands 

$ionic cordova build ios/android -> It is to compile the code

$ionic cordova run ios/android

-> Run on simulator

$ionic serve –l

-> Run on the browser


Contact for any assistance

www.cynoteck.com Contact No: +1-612-800-9092,+918272014440, +918430155522s Website : Email :

www.cynoteck.com sales@Cynoteck.com


Thank You!


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.