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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.