Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: ionic serve vs ng serve #5086

Open
rajinder-yadav opened this issue Apr 13, 2024 · 1 comment
Open

docs: ionic serve vs ng serve #5086

rajinder-yadav opened this issue Apr 13, 2024 · 1 comment
Labels

Comments

@rajinder-yadav
Copy link

rajinder-yadav commented Apr 13, 2024

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.

@ionitron-bot ionitron-bot bot added the triage label Apr 13, 2024
@rtpHarry
Copy link
Contributor

I don't think removing it is going to be implemented.

The point is that ionic serve works for all ionic projects, be it vue, react, angular, you can always rely on typing ionic 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:

alias ios="ionic serve"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants