Skip to content

Instantly share code, notes, and snippets.

@Sankame
Created June 25, 2015 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sankame/e4ed0d2d8b9c9df5f074 to your computer and use it in GitHub Desktop.
Save Sankame/e4ed0d2d8b9c9df5f074 to your computer and use it in GitHub Desktop.
【Angular2】クイックスタート
/// <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