You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The document doesn't explain what is so different between using 'ionic serve' vs 'ng serve'. If there is no difference, can you please just consider getting rid of 'ionic serve' for angular applications?
I find typing 'ng s' a lot quicker and easy. However having a different way, to start an ionic + angular app leaves room for confusion. As if the it's doing something extra, which again the document fails to detail.
It mostly just translates some standardised ionic params into the ng equivalents from what I can tell, but it does do some things for cordova projects.
If its really annoying you there are various ways to set up a shorter alias for ionic serve, depending on your os/terminal, such as in ~/.zshrc:
Activity
rtpHarry commentedon Nov 13, 2024
I don't think removing it is going to be implemented.
The point is that
ionic serveworks for all ionic projects, be it vue, react, angular, you can always rely on typingionic serve.You can see the raw code here:
https://github.com/ionic-team/ionic-cli/blob/fbeac60cdde6f6504900e9c403fa4e79528ca067/packages/%40ionic/cli/src/lib/project/angular/serve.ts
It mostly just translates some standardised ionic params into the ng equivalents from what I can tell, but it does do some things for cordova projects.
If its really annoying you there are various ways to set up a shorter alias for ionic serve, depending on your os/terminal, such as in
~/.zshrc: