Create first program with Angular 7


Now as the setup of the Angular 7 is done in the system let us build out first program by following these steps.

  • Create a folder for the application
  • Open the folder in the CMD (Command Prompt)
  • Now enter the command below to create program “demo-app”
ng new demo-app
  • During this process system will prompt to select these
  • Would you like to add Angular routing? Yes or No
  • Which stylesheet format would you like to use? CSS, SCSS, SASS or LESS etc.
  • Now do
cd demo-app
  • Now let us run the program just created using above command
ng serve -o
  • The above command will perform the build, run on the server and open your default browser with the program created at http://localhost:4200

Hope you got the result as I did. I will share more about Angular 7 in later posts or follow me at WordPress

If you liked this post, give me 10 claps and a follow!