Hybrid Mobile Apps Development

Angular JS and Ionic

with

By Amit Gupta

Brief Introduction

Angular JS

  • Extends custom HTML Tags
  • Close to MVVM(Model-View-VewModel) than traditional MVC framework. Also termed as MVW(Model-View-Whatever)
  • Client side application development than just client side view.
  • Open Source, Popular(Better than its alternatives, next big thing).

Ionic Framework

  • SaaS based Front end UI framework optimised and designed for mobile UIs
  • Extensive documentation and tutorials which is a plus point.
  • Revolution in cross mobile app development with native like UIs predesigned to be plugged in.
  •  

Ionic: Core Features..1

  • Data-binding: It is the automatic synchronization of data between model and view components.

  • Scope: These are objects that refer to the model. They act as a glue between controller and view.

  • Controller: These are Javascript functions that are bound to a particular scope.

  • Services: AngularJS come with several built-in services for example $http to make a XMLHttpRequests. These are singleton objects which are instantiated only once in app.

  • Filters: These select a subset of items from an array and returns a new array.

Ionic: Core Features..2

  • Directives: Directives are markers on DOM elements (such as elements, attributes, css, and more). These can be used to create custom HTML tags that serve as new, custom widgets. AngularJS has built-in directives (ngBind, ngModel...)
  • Templates: These are the rendered view with information from the controller and model. These can be a single file (like index.html) or multiple views in one page using "partials".

  • Dependency Injection: AngularJS has a built-in dependency injection subsystem that helps the developer by making the application easier to develop, understand, and test.

Ionic: Core Features..3

  • Model View Whatever: MVC is a design pattern for dividing an application into different parts (called Model, View and Controller), each with distinct responsibilities. AngularJS does not implement MVC in the traditional sense, but rather something closer to MVVM (Model-View-ViewModel). The Angular JS team refers it humorously as Model View Whatever.

  • Deep Linking: Deep linking allows you to encode the state of application in the URL so that it can be bookmarked. The application can then be restored from the URL to the same state.

  • Routing: It is concept of switching views.

Ionic with Angular JS

Beautiful Mobile Apps

Sample App Illustration

Quotations App

  • A very simple application illustrating development using ionic framework and angular JS developed for Android and IOS platforms.


  • Check it out at https://github.com/eamitg/ionic-quote-cards

Ionic Reference

  • Ionic Framework Showcase http://showcase.ionicframework.com/
  • Ionic Framework Docs: http://docs.ionic.io
  • Ionic Framework Blogs: http://blog.ionic.io/

Thank you

Made with Slides.com