Issue
I have generated a project using angular-cli by following steps given in installation section. Project is running right now. But i have to open browser manually by typing http://localhost:4200/ into browser.
Could it be possible like when user will execute "ng serve" or "npm start" command, browser will open automatically?
Please let me know if it is possible or give me any solution for this.
Solution
Per the documentation you can use a flag with ng serve
:
--open
(-o
) Opens the url in default browser.
You may need update your version for this functionality, as the revision history of the wiki page suggests it's a recent addition.
Answered By - jonrsharpe
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.