- First, we will install Angular CLI. Note that the command that follows will install a lot of npm packages, so you may need to wait some time for it to complete. To install Angular CLI, run the following command in your console:
npm install -g @angular/cli
- Now, we can install a new Angular project. This will also take quite some time, so be prepared to wait. Type the following command and wait for it to complete its installation:
ng new recipe2
- Once the preceding command is finished, you can cd into your recipe2 Angular app and run it:
cd recipe2;ng serve --open
- The preceding command will open your browser automatically, at http://localhost:4200/. Preview the app being served; it should have the Welcome to app!! ...