Creating an Angular Application Using the CLI
- Let's first install the Angular CLI globally (g for global install). Open a terminal window and run the following command
-
npm install -g @angular/cli - With the CLI installed globally, we can use the ng command from anywhere in our local machine. ng is derived from A(ng)ular.
- To create new angular project run the following command
-
ng new will-i-am prefix --shakesphere - And now let's open this folder in VS code and run to see if the server is running the default port.
-
ng serve -o
4
