Reputation: 2028
Is there any advantage in testing the ionic app on a web browser using the the ionic serve
command vs just running a local apache server and browsing the www folder (e.g. http://localhost/www/#/app/home
). I checked the serve.js
file in the npm module and apparently all it does is listening for a tcp connection on a default port using nodejs modules.
Upvotes: 0
Views: 600
Reputation: 6974
There are a few advantages, but you are certainly able to use a local apache server as well.
ionic serve
benefits
-r
flag on the command.-b
flag on the command.Apache benefits
Its up to you really, but I use ionic serve
. You can also use cordova serve
which does the same as ionic serve
without live reload and browser open, and runs on localhost:8000
.
Upvotes: 1