Will ionic 5 use angular 9 as default?

Will ionic 5 use angular 9 as default when creating new project?

That’s actually a very deep and nuanced question that touches on lots of complicated truths about versioning in Ionic-land that you probably aren’t really interested in. Probably the best thing you can do is to use ionic start to spawn a new project and look at what you get.

1 Like

This was probably a waste of resources kind of answer. You could have given me a documentation about versioning in ionic-land to read, but you didn’t.
Starting a new ionic 5 project doesn’t just give me an older version of angular (8.2.14) but also an older version of ionic 5 (5.0.0), and ionic 5.0.4 is already out. Which reminds me that your documentation about ionic CLI is not helpful at all, it just says how to install ionic CLI, nowhere how to update it, delete it, and other commands. Also, ionic cli seems to have bugs since it doesn’t upgrade to the right and latest version.
Probably if you gave a proper answer you would enlighten us on some issues.
Thank you.

1 Like

@Arianit08 this forum is quite possibly the worst forum I have ever been on for answers, nobody seems to have a clue about most things that are asked. Your observation about the versioning is entirely accurate and the Ionic documentation is quite frankly laughable massive chunks of functionality are missed out almost to the point that I don’t even bother looking anymore.

The whole process of moving between versions of Angular and/or Ionic also seems to be something you must perform manually why this is I have no idea, but the only way I have got things to work is by manually removing individual packages and re-installing them!

To answer your question, Angular 9 and Ionic 5 have an incompatibility, something to do with the routing it has been mentioned in a couple of places online but absolutely nothing seems to be publicly made available to its user base. As far as I am aware we are waiting for a fix from the Ionic side to resolve the issue.

https://github.com/angular/angular/issues/35338

From what I can see there is no Ionic 5 documentation, $6,000,000 in additional funding and nobody can even tell me why clear-input doesn’t work on an ion-input element!

3 Likes
Will ionic 5 use angular 9 as default when creating new project?

We first updated from Ionic 4 to Ionic 5 and then only just yesterday upgraded from Angular 8 to Angular 9. We have a massive project and the whole process of starting a new blank template as we have done in the past was last on our list so we did is:

  1. Created a new git branch of my project still in Ionic 4
  2. Fixed all the deprecated issues in the console logs (eg changes in ionic classes)
  3. In terminal ran npm install @ionic/angular@latest (note this assumes you have angular 8, if older check
    ionic changelogs for more details)
  4. Fixed breaking changes (see changelogs)
  5. To upgrade to Angular 8 to Angular 9 ng update @angular/core @angular/cli --allow-dirty
  6. Fixed migration warnings
  7. Upgraded my third party packages to angular 9
  8. Test test test

The Ionic video really helped me: https://youtu.be/851HkqX3YQ4

@Arianit08 this forum is quite possibly the worst forum I have ever been on for answers, nobody seems to have a clue about most things that are asked. Your observation about the versioning is entirely accurate and the Ionic documentation is quite frankly laughable massive chunks of functionality are missed out almost to the point that I don’t even bother looking anymore.

@andyhb I must admit when I first saw the new upgrade from Ionic 4 to Ionic 5 I was initially frustrated as well because given previous experiences from upgrading ionic versions has been extremely cumbersome (like starting a new template from scratch). However this time with semantic versioning it was easier than before and overall good improvement by the Ionic Team…so you may not be so frustrated with this upgrade.

My only criticism was in the changelogs there are no instructions for upgrading to Angular 9, we spent hrs upgrading it manually without any luck, all was needed is this command ng update @angular/core @angular/cli --allow-dirty

I would recommend against --allow-dirty. Instead ensuring you have a clean workspace at these critical points of the upgrade allows more reliable rollback if needed.

Hey there,

All Ionic starter apps now ship with Angular 9 as default. There were a few bugs before, but those were taken care of a few releases ago.

As for upgrading an existing application, you can follow the Angular 9 upgrade guide: https://update.angular.io/. You will need to be running the latest version of Ionic 5.

Or, if you prefer a video walkthrough we have this: https://www.youtube.com/watch?v=851HkqX3YQ4. It shows you how to upgrade from Ionic 4 to Ionic 5 as well as Angular 8 to Angular 9.