Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic project types: --type=angular vs --type=ionic-angular

I am confused on what project type should I use. In official Ionic docs they suggest to create a new project by running - ionic start MyApp tutorial --type=ionic-angular. But from other source I found that I could ionic start MyApp tutorial --type=angular, which makes my life easier because I could use for ex. ng add to add dependencies and the project structure is like Angular. However, --type=angular doesnt have super project type, so I can't generate new app with ionic start MyApp super --type=angular, I can live with that, but need some advices on which project type is preferred - what criteria for choosing one over another (--type=angular vs --type=ionic-angular)?

like image 856
Julius Dzidzevičius Avatar asked Jan 26 '23 10:01

Julius Dzidzevičius


1 Answers

With Ionic 4 you should use the cmmmand,

ionic start MyApp tutorial --type=angular

whereas in Ionic3 you would have used

ionic start MyApp tutorial --type=ionic-angular

basically going forward you should use the first way. However i would recommend to build apps using capcitor which makes life easier

like image 88
Sajeetharan Avatar answered Feb 05 '23 14:02

Sajeetharan