With the CLI we can also easily serve our application using a local web-server.
We just run: ng serve
This builds our application, bundles all our code using webpack and makes it all available through https://localhost:4200. ng serve also watches for any changes to files in our project and auto-reloads the browser for us.
After this,
Please open browser.
Type https://localhost:4200
Press Enter.
Congratulations!!
Now you successfully run your angular project.
We just run: ng serve
This builds our application, bundles all our code using webpack and makes it all available through https://localhost:4200. ng serve also watches for any changes to files in our project and auto-reloads the browser for us.
After this,
Please open browser.
Type https://localhost:4200
Press Enter.
Now you successfully run your angular project.
0 comments: