Java Topics

Angular First Application

 To create Angular First application you can follow below steps.

  • Open command prompt and type ng new First-app
  • It's take few minutes to generate application
  • Next, to navigate our application type cd First-app
  • Next to start server, give ther command called ng serve.
  • It gives default port number like, http://localhost:4200/
  • We can see the result of runnning application in Browser .

C:\Angular>ng new First-app

C:\Angular>cd First-app

C:\Angular\First-app>ng serve

In browser type http://localhost:4200/


                

                                                                                                                                                                
  • For writing code, we can use any of the IDE  in your machine. Here I'm using Visual studio code in my machine.
  • Go to this link to download Visual studio code in your machine.

Next, open Visual studio code and open Folder and select your First-app.


The below showing files are important to the Angular application


For each and every file explanation in Angular you can follow this link by Clicking here.