Created
June 25, 2015 15:30
-
-
Save Sankame/e4ed0d2d8b9c9df5f074 to your computer and use it in GitHub Desktop.
【Angular2】クイックスタート
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="typings/angular2/angular2.d.ts" /> | |
import {Component, View, bootstrap} from 'angular2/angular2'; | |
// Annotation section | |
@Component({ | |
selector: 'my-app' | |
}) | |
@View({ | |
template: '<h1> {{ message }} </h1>' | |
}) | |
// Component controller | |
class MyAppComponent { | |
message: string; | |
constructor() { | |
this.message = 'Hello World !'; | |
} | |
} | |
bootstrap(MyAppComponent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment