Angular 2 migration guide

Convert your Angular 1 knowledge into Angular 2.

Select a topic and start learning!

Get started
 
1import {Component} from '@angular/core';
2
3@Component({
4  selector: 'my-app',
5  styles: [`.app { background: #f9f9f9; }`],
6  template: `
7    <div class="app">
8      Hello world!
9    </div>
10  `
11})
12export class AppComponent {
13  constructor() {
14    
15  }
16}
 

Author: Todd Motto

The ngmigrate project is brought to you by Todd Motto, a Developer Advocate at Telerik, spreading the good word of Kendo UI, NativeScript and Angular 1 & 2. You can follow him on Twitter for questions, or even requests about this guide.