In this tutorial we will understand the basics of Angular 5 js. What are the main features of Angular.  What is require to learn Angular. First we will discuss about the definition of angular js.

Angular JS Introduction:

  • It is a client side javascript framework.
  • Runs on client side
  • The framework is maintained by google.

Features of Angular JS

  • Fast to code.
  • Code is very organized.
  • Dynamic Content
  • Code is compatible on different platform

Install Angular JS

  • npm install –g @angular/cli
  • In order to check the installed version write command
  • ng –v

How to create new App in Angular js

  • ng new testapp –style=scss –routing
  • ng serve

Use ng serve to start the server.

Components in Angula JS

ng generate component home

Program Structure:

import { Component } from ‘@angular/core’;


selector: ‘app-root’,

templateUrl: ‘./app.component.html’,

styleUrls: [‘./app.component.scss’]


export class AppComponent {

title = ‘app’;




1328total visits,1visits today