Sitemap

What is ionic?

6 min readDec 1, 2017

--

Hello everyone you know about ionic? if not we would like you to present that

source:https://www.bsetec.com/blog/ionic-framework-focus-mainly-on-the-ui-interaction-of-hybrid-mobile-app/

in the formerly when developer want to create mobile application in main type such as Android and iOS, it use difference platforms .Of course! developer must be create two platforms between Android and iOS for comprehensive most type. That make to very time consuming to develop.And not easy because you need to learn new technology.

Ionic Framework can help you to develop mobile application easy more than last time. By Ionic Framework have Hybrid technology which make you to develop mobile application one time but can build you mobile application for support many platforms such as Android and iOS because people popular to used.

5831305009 JIRAPAPAR SRITI

What is the technology developed by Ionic?

Press enter or click to view image in full size
Source: http://blog.prscreative.com/wp-content/uploads/2016/03/prscreative-ionic.jpg
  1. HTML
    HTML is the main language used to write web pages using the tag for rendering to display. HTML stands for Hypertext Markup Language, so HTML is the language that uses tags to determine the visibility of web pages that are connected to Hyperspace via Hyperlink.
  2. CSS
    CSS is Cascading Style Sheet that define user interface of HTML file. CSS properties is command of the top of page have priority than below the page. CSS can be used to customize the font style, background color, and so on. CSS is both internal and external that can write in html file or split into a style sheet file and then run later.
  3. JavaScript
    JavaScript is a script language that is used on each web pages. JavaScript is created to make the web page more interactive for users and used function such as validating form data, checking the type and version of a web browser, generating cookie files, creating features such as calendars, and snowfall.
    JavaScript is an interpreted language. It does not have to be compiled before, that is, the computer translates and runs in a line-by-line manner. JavaScript is not a Java language because Java language developed by Sun Microsystems, so it is a programming language that supports object-oriented programming (OOP: Object-Oriented Programming) like to C, C++.
  4. AngularJS
    AngularJS is open source framework for building dynamic web application in the client side. It use MVC framework for implement which is synchronize processes such as filter search input and display text of input text immediately. Moreover it has syntax to set upper, lower, and reverse case for display the text.
    It easy to understand because developers who already has knowledge on HTML and JavaScript, so they not need to learn this syntax again. Moreover AngularJS has extend feature from static HTML to dynamic HTML, so it can provide customize of components and attribute by using JavaScript.

5831305020 THANASETH SANNOI

What relationship between Ionic and PhoneGap/Cordova

PhoneGap and Cordova is similar work because Cordova is develop from PhoneGap,By the owner of Apache.

Cordova can manage technology of system function on the operating system . which can be used in all operating systems such as Android and iOS. And than Cordova have duty to mantle application and can contact to hardware of mobile

Press enter or click to view image in full size
http://blog.prscreative.com/what-is-ionic/
Press enter or click to view image in full size
http://blog.prscreative.com/what-is-ionic/

Ionic is develop by use HTML, CSS, JavaScript language And was build as an application with Cordova. we will see that this application have not contact with hardware but use Cordova.

5831305072 WITTHAYA MUANGMA

Advantage of Ionic

  1. It is open source for development.
  2. It is support into both platform which are mobile and desktop when deployed.
  3. Developer can switch platform for display after deployed which are desktop or mobile.
  4. It can deploy across platforms which are Android, iOS and window device.
  5. It use AngularJS language for getting new and powerful function or feature for creating application.
  6. AngularJS is based on HTML and JavaScript, so developer who already has knowledge on HTML and JavaScript not need to learn new syntax.
  7. It has own icon and it can display into three type which are iOS, iOS-Outline and Material Design.
  8. Low cost for implement and maintenance because it has many platforms for display.
  9. For ionic native, developer can use native for integrate device.
  10. The theme of ionic has standards in each platform and developer can customize or modify that platform.
  11. It has many components for development in term of mobile which are Action Sheets, Badges, Date Time, Slide, Segment, Tabs, Toggle, Search bar, Loading and soon.

Disadvantage of Ionic

  1. Developer must has expert and experience in implement and development the complex application.
  2. AngularJS is quickly grow up, today it is version 5 and it has new feature for continuous learning.
  3. The navigation must use ui-router for link page to other page or link between elements, so it must has enough knowledge because it rather difficult for implement.
  4. Performance not good, because it use many resources for execution.
  5. Some of element depend on other, so it difficult to manage it such as remove, add, and update.

5831305031 PORKAEW JARUSDUMRONGWAT

How it work?

Get started with Ionic Framework
1.Install Ionic : npm install -g cordova ionic
2.Start an App :ionic start myApp tabs

Press enter or click to view image in full size
https://ionicframework.com/

3.Run Application : cd myApp , ionic serve

Deploying to a Device

Running Your App : To run your app, Developer Mode on your Android device, then run ionic cordova run android --device from the command line on windows.

Get JIRAPAPAR SRITI’s stories in your inbox

Join Medium for free to get updates from this writer.

Migration Concepts
In Ionic, things should feel quite familiar. And all the concepts from Ionic v1 are in the latest versions. You still have views and controllers like you did in v2, but they have been merged into one instance.

Take this V.1 example

.config(function($stateProvider){
$stateProvider
.state('main', {
url: '/',
templateUrl: 'templates/main.html',
controller: 'MainCtrl'
})
})
.controller('MainCtrl', function(){
})

You can rewrite this using the latest Ionic like this

@Component({
templateUrl:'main/main.html'
})
export class MainCmp {
constructor() {
}
}

Controller

Controller is a feature in Angular 1.x where, instead of binding data to $scope, you can bind to the direct instance of the controller.

This makes migrating a Angular 1.x controller to an Angular 2 class much easier. It’s fairly easy to migrate to controllerAs from a traditional controller.

index.html

<ion-content ng-controller="MainCtrl">
<ion-item>
{{data.text}}
</ion-item>
</ion-content>

app.js

.controller('MainCtrl', function($scope){
$scope.data ={
text: 'Hello World'
}
})

To convert this to controllerAs syntax, you only have to change a few things
index.html

<ion-content ng-controller="MainCtrl as main">
<ion-item>
{{main.data.text}}
</ion-item>
</ion-content>

app.js

.controller('MainCtrl', function(){
this.data ={
text: 'Hello World'
}
})

TypeScript

TypeScript is JavaScript that provides ES6 Classes and type annotations in your code. The best part is that any valid JavaScript is also valid TypeScript, If you take your controller from before, you can easily convert it to a TypeScript class like this.

app.js

.controller('MainCtrl', function(){
this.data ={
text: 'Hello World'
}
})

app.ts

export class MainCtrl{
constructor(){
this.data ={
text: 'Hello World'
}
}
}

Project Structure

|-www/
|
|--js/
|--|-app.js
|--|-HomeCtrl.js
|--|-DetailCtrl.js
|
|--templates/
|--|-Home.html
|--|-Detail.html
|
|-index.html

start to be reorganized to look like this:

|-www/
|
|--Home/
|--|-HomeCtrl.js
|--|-Home.html
|
|--Detail/
|--|-DetailCtrl.js
|--|-Detail.html
|
|-index.html
|-app.js

You can get Doc. in link :https://ionicframework.com/docs/intro/concepts/
And simple project ionic :https://github.com/wfxiaolong/ionic-social-app.git

5831305026 NIWAT BUAKHIAO

Reference

  1. Coding basic, CSS . Retrieve from http://www.codingbasic.com/css.html
  2. Coding basic, HTML . Retrieve from http://www.codingbasic.com/html.html
  3. Enjoyday.net. (2009). JAVASCRIPT คืออะไร. Retrieve from http://www.enjoyday.net/javascript-%E0%B8%84%E0%B8%B7%E0%B8%AD%E0%B8%AD%E0%B8%B0%E0%B9%84%E0%B8%A3.html
  4. Ionic Framework. (2013). The Top Open Source Framework For Building Amazing Mobile Apps. Retrieve from https://ionicframework.com/
  5. Sunil J. (2016). The Pros & Cons of Developing with Ionic. Retrieve from http://www.alliancetek.com/blog/post/2016/04/06/the-pros-cons-of-developing-with-ionic.aspx
  6. what is ionic : http://blog.prscreative.com/what-is-ionic/
  7. And simple project ionic :https://github.com/wfxiaolong/ionic-social-app.git

--

--