- Hybrid Mobile Development with Ionic
- Gaurav Saini
- 398字
- 2021-07-02 23:53:49
Angular and Ionic myths
As you go forward, you will hear many myths that are not true in respect to Angular 2 or upgrading to Angular 4. One of the most common is the Angular 4 doesn't support two-way data binding, which is not true. The Angular team has made sure that we use forms as simple as we use in Angular 4, they just have a new syntax:
[(property-name)]="expression"
<input type="text"
[(ngMmodel)]="model.name" />
We still have two-way data binding. Although, to improve the Angular digest cycle and performance by default, we don't use two-way data binding. It uses a unidirectional binding that we can extend to two-way binding when we require it. You can refer to Angular template syntax to demystify all other syntax's and their uses available with Angular 4.
Ionic lack URL navigation is another discussion going on at the Ionic forum. Again this is also partially correct; because Angular-router was not stable enough, the Ionic team decided to remove it in the initial beta version. As of now, Angular-router is stable and will be in Ionic. The Ionic team understands how critical it is to have a proper routing mechanism and to make a developer feel at home while moving towards Ionic 3.
Upgradation is entirely rewritten: Angular 2 is itself rewritten, but you don't have to rewrite your app also. Initially when I started I felt the same and thought that we had to redevelop our current application. But there are many tools and documentation (http://ionicframework.com/files/Ionic2Migration.pdf ) available for a smooth upgrade from Ionic 1 to Ionic 2 or 3. You just have to be careful as if you have a complex application then you might have to do many things manually. But one thing is for sure that upgrading the application will surely not take that much time when you build the same application from scratch if you have proper expertise and a concept of Angular 2. One of the reasons behind this is that you already have a running application where you just have to assemble the moving parts in different ways, as most of the application logic will be same.
Personally, my learning process with Ionic didn't think too much about I upgrading to a new version. Rather I took it as new improved concepts that came in new Angular versions, designed to ease the learning and understanding.
- C# 2012程序設計實踐教程 (清華電腦學堂)
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- AngularJS Web Application Development Blueprints
- Flash CS6中文版應用教程(第三版)
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- Flutter跨平臺開發入門與實戰
- 快速入門與進階:Creo 4·0全實例精講
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- Julia 1.0 Programming Complete Reference Guide
- 零基礎學C語言(升級版)
- 深度實踐KVM:核心技術、管理運維、性能優化與項目實施
- Mastering ArcGIS Server Development with JavaScript
- Python人工智能項目實戰
- Android從入門到精通
- Visual FoxPro程序設計