Have any questions about strategy for Angular 2.0? This is the place where you will learn about angularJS 2.0. After many request from my readers i am explaining my own opinions and insights about major features of AngularJS 2.0.

Motivations to develop Angular 2.0

You might be wondering why AngularJS make a big jump to 2.0 and why so many breaking changes? The AngularJS team developed lots of big changes in 2.0 version. It will take a few minuts to talk about some of the high level motivations of changes.


Better Speed & Performance

Angular turns to optimized your templates code. Now it is using JVM (Java Virtual machines) which will give you all the benefits of hand-written code with productivity of a framework. It serve the first view of your application on node.js, .NET, PHP and other servers for near-instant rendering in just HTML and CSS and also pass the way for websites that better optimize for SEO purpose.


Quickly create UI views with simple and powerful template syntax and command line tools for start building fast, add components and tests, then deploy your application.

How to create angularJS 2.0 template :

Angular Uses TypeScript language

AngularJS 2.0 is not only a version upgrade, it’s a complete rewrite. AngularJs 2.0 recommends the use of TypeScript language developed by Microsoft which uses the following improvments :

  • Object Oriented Programming
  • Static Typing
  • Generics
  • Lambdas

Routing Solution

AngularJs 2.0 have changed the way to use routing solution to generate the navigation for front end UI. Following is key features :

  • JSON-based route configuration
  • URL resolver
  • Support the query string
  • Use push state
  • Static, Parameterized and Splat Route Patterns
  • Navigation based model (Generating navigation for UI)
  • Document title updates
  • 404 route handling
  • Location service
  • History manipulation

Here is My First AngularJS 2.0 App

Directory structures of My First AngularJS 2.0 App.

Create main.ts file

Create the file app/main.ts with the below code :

Create index.html

Create index.html, then copy and paste the below code :

Add some styles in your view file.

Create a styles.css file in your app root folder and add some styling.


Thanks for taking time to read this. If you have any particular features in your mind, share it with us in the comments section below.

Play This App    Download

Thank you for giving time on freewebmentor community. Please don’t forget to subscribe our newsletter or join us on Facebook to be the first to learn the next great thing from freewebmentor.