How is the Ionic Framework v4 different from v3?

Technology CommunityCategory: IonicHow is the Ionic Framework v4 different from v3?
VietMX Staff asked 3 years ago

Some of the differences are: 1. Web Components – Ionic V4 was completely rewritten to use WebAPIs and each component is packaged as a Web Component. Web Component defines as a set of Web APIs that allow you to create HTML tags that are reusable in nature. 2. Compatibility with other Frameworks – Since it’s inception Ionic Framework was built using Angular but Ionic v4 is completely independent of the base framework. 3. Navigation – Instead of NavController and ion-nav, Ionic4 uses @angular/router 4. Life cycles of navigation (LifeCycles) – The lifecycles that were used in Ionic 3 as ionWillLoad will no longer be used in Ionic 4. It uses Angular life cycles such as ngOnInit and ngAfterViewInit. 5. routerLink – In Ionic 3 the event (click) is used to navigate between pages from the HTML. In Ionic 4 we will use the routerLink , as it is used in the Angular applications. 6. Modules – It is not necessary to import the pages and services in the app.module.ts file.