官术网_书友最值得收藏!

Angular 4, Ionic 3, and TypeScript

Many of us coming from the Angular 1 world to Angular 2 or 4 will surely see that it's an entire rewrite of the application and a steep learning curve. I felt the same when I initially started Ionic and Angular, but gradually as I read about the concepts of Angular, many of the problems we used to face in Angular 1 were automatically solved without any effort. Initially you will miss the old controllers, services, filters, and other concepts in Angular 1 and most importantly the navigation and routing. But when you pe deep into the topics you will find that corresponding modules such as component, providers, and pipe are available and that they can be used in similar ways. Navigation and router are also now used as push and pop mechanisms for navigating from one page to another page. In the initial beta versions of Ionic 2, we don't have proper URL-based routing as users can't land on a specific page in the application. But after a stable Angular-router is released it has been added to Ionic 2, which has opened the path for better support for progressive web apps, which will allow the same Ionic apps to be shipped as mobile web applications. Ionic 3 also added support for responsive grids, which will help when we will be building desktop applications. Lazy Loading is another important feature added, which reduces the initial loading time of the application. Still, as Ionic 3 is in initial days, we can expect these features to become a lot more stable. As, we know Ionic 2 and 3 did not have any major framework changes, so initially we will be comparing Angular 1 and 2 in this chapter so it helps users understand the difference and how they can migrate to the latest Ionic versions.

主站蜘蛛池模板: 白沙| 商丘市| 山东省| 始兴县| 嵊州市| 佛山市| 中超| 临沭县| 嘉定区| 防城港市| 甘孜县| 调兵山市| 平罗县| 鸡西市| 汝城县| 英超| 鲜城| 阳新县| 江孜县| 西峡县| 清原| 宜宾市| 昌平区| 安泽县| 金山区| 和平区| 金塔县| 青龙| 乌拉特中旗| 孝感市| 嘉禾县| 宁国市| 额尔古纳市| 呼和浩特市| 庆安县| 分宜县| 达拉特旗| 社会| 博罗县| 兴国县| 拉萨市|