Angular JS is one of the most popular javascript framework for web application development. Angular JS is very useful if you want to create single page application.

Why we use Angular 2?

  1. Angular 2 is much easy to learn as compared to Angular 1.
  2. Now you can optimize large data sets with minimal memory overhead.
  3. It will speed up the initial load through server side rendering.
  4. Component-based approach

Angular 2 Features

  1. Speed and Performance: Angular 2 is much faster than Angular 1 and have better performance.
  2. Cross Platform: You can create progressive web apps, native mobile application with an ionic framework and also you can create desktop application.
  3. Angular CLI: This time Angular 2 come with CLI you can build fast and test your application.

TypeScript in Angular JS

TypeScript is a superset of JavaScript which primarily provides optional static typing, classes, and interfaces. One of the big benefits is to enable IDEs to provide a richer environment for spotting common errors as you type the code.

If NPM is already installed in your system then you can simply run command to install typescript using this cmd.

Angular CLI

You need node and NPM latest version to install CLI tool in your system. You can read complete info from this link.

Application Architecture

Angular has 4 main key players for its application

Application Architecture Angular2

Components: Encapsulate the template, data and the behavior of view.

Directives: To modify DOM elements and or extends their behavior.

Routers: If you want to navigate to a different page without refresh window of your application we use Routes.

Services: If we want to run something on application background we use service.

To continue please follow this link: Create simple Angular Js Application.