Thursday, August 8, 2019

Understanding relationship between Ionic and Angular

Angular is a javascript client side framework for creating web application, it has its own web UI components, and manipulates the DOM tree, data binding, dependency injection, and routing for single page web app.

Ionic is a client side framework which targets to different client platforms with a common code base. It can also be used to create native mobile app. Ionic implements its own ion UI web components and style sheet, and Ionic also supports native features like camera, geolocation, etc, through cordova or capacitor bridge.

Previously ionic only works with Angular, however, since Ionic 4.0, developers can create Ionic app just using vanilla (pure) javascript code without Angular. That means Ionic does not depends on Angular, so what is relationship between Ionic and Angular when they are used together?

Actually, when using Ionic and Angular together, ionic will import its ion UI components to Angular, so that Angular framework can use those ionic UI components as if they are regular Angular UI components. In addition, ionic leverages Angular framework and cli to manage the application, data binding, dependency injection, and page routing, so that web developers who are already familiar with Angular framework can use the same knowledge to create and manage the ionic application.


No comments:

Post a Comment