Skip to content

First Angular Application

Md. Shohel Rana edited this page Apr 22, 2018 · 7 revisions

Your First Application of Angular

Step 1: Create a new project

Create a new folder to your computer derive. In windows, open a terminal window by pressing shift key plus mouse right button into this folder and write the following command.

ng new our-app

Please be patience, It takes time to set up a new project; most of it is spent installing npm packages.

Step 2: Serve the application

Go to the project directory then open a terminal window and write the following command for launch the server.

cd our-app
ng serve --open

You can open your application by using the --open (or just -o) option. Both command will automatically open your browser on http://localhost:4200/ or directly copy the link to browser address bar and see the application interface.

Your app look like this.

Preview