How do I set ionic serve to use Chrome as the default browser?
On Mac, option -f chrome
is not working, on ionic version 2.1.8
Use ionic serve --browser "google chrome"
It will set the default browser to Chrome.
In ionic.project
file add:
"defaultBrowser": ""
OR
"defaultBrowser": "chrome"
and try ionic serve
this is working..!
u can also try :
"defaultBrowser": "firefox"
this.. and this.. might be help..
Try ionic serve -w chrome
, this will serve ionic2 in Chrome
(ionic2 RC4+)