Why is Ionic 5 using Angular 8.2.14 - ionic-framework

I updated to the latest ionic cli (version 6.1.0). And when I create a new ionic project, in the package.json file it uses angular 8.2.14.
Why is that so? Isn't ionic 5 using angular 9?

There are not major changes in Angular 9.
A9 is similar to A8 (as per functionality and logic).
Angular 9 is in latest version and it's now stable.
I think Ionic decided to use Angular 8 because it's LTS version.
Other reaseon can be, Ionic 5 was launched some days before Angular released its version 9.
Here you can read some notes:
https://angular.io/guide/releases#deprecation-practices
You can update easily your ionic project angular version to 9 (it's 100% compattible with ionic) if you want to use the latest version.
ng update #angular/core #angular/cli.
The starter apps currently ship with Angular 8 and will be updated to ship with Angular 9 by default soon. (source: Ionic Forum)

Related

How to create an Ionic v6 Project based on Angular

In versions of the Ionic framework, after Ionic v2, an Ionic v3 Angular project can be created by setting --type=ionic-angular e.g.
ionic start MyApp blank --type=ionic-angular
So even if Ionic v5 is installed the above command would create an Ionic v3 Angular project.
My question is how can I always create an Ionic v6 Angular project, even if I install the latest version of Ionic in 6 months time? E.g. When Ionic v7 is released will there be a way to create an Ionic v6 Angular project?
It will not change, it will stay the same as you posted.
You can force it by installing #ionic/angular version to current version in your package.json file.
However, Ionic is a very unstable framework even after 10 years. Every time there is a new release, old plugins completely get messed up. And you need to update plugins to stay in sync with iOS/Android updates. I have wasted so many hours every time there is a new Ionic or Capacitor release. The process is never straightforward.

Ionic versions - understanding difference between ionic cli version and ionic core version

I am starting to work on an existing Ionic 4 application. In that project #ionic/core version is 4.8.1. To start, I installed ionic CLI and noticed its version to be 5.4.15. I was not able to find easily if I can install an older ionic CLI version.
However, I feel CLI version and the application version need not be the same always. So, now, I would like to know how these things are related. Also, for me to run my existing project, can I use the same version of ionic CLI.
I wanted to mention that all ionic-native/**** references are 5.10.0 which I think should fine as #ionic/core and #ionic/angular is the version which says what my ionic project version is.

which version is/are suitable for a production app for ionic CLI and Ionic framework?

As ionic 4 is released, I am wondering if I should start my new project in ionic 4 and ionic 4.9 (CLI) or any stable version you guys would suggest to prevent any issues ?
I think you can start your project with Ionic 4.0. With this final release, your app will perform better than version 3. Your doubt is good because there are still some bugs this is release but Ionic version 4.0 will allow you to update your application easily with the newer version. Ionic Framework team is working really hard for bug-free Ionic 4.0.

Can we deploy ionic 1 app using latest version?

I am able to build ionic 1 app but it is not working fine. I am building my ionic 1 app with latest version of ionic. I don't know what is exact reason for this. Can you help me on this?.
Thanks in advance.
I'm guessing you are using the latest version of the ionic CLI and a project with ionic 1 library installed?
The latest ionic CLI works with ionic 1 javascript libraries.

Migration from ionic beta 13 to beta 14

What are the best possible ways to migrate my project developed in ionic beta 13 version to the latest release of ionic beta 14?
I recommend to review the changelog of ionic https://github.com/driftyco/ionic/blob/master/CHANGELOG.md and the migration guide from AngularJS 1.2 to 1.3 (since the underlying AngularJS version was bumped with beta14 of ionic).
The Angular migration guide is located here: https://docs.angularjs.org/guide/migration
For most projects, the two commands that you'd want to use to get Ionic up to date are:
First, make sure your CLI is up to date:
sudo npm install -g ionic
Second, update the project libraries:
ionic lib update
For advanced users, the links shared in other answers will be of great help.