Skip to content

Instantly share code, notes, and snippets.

@jearle
Created August 11, 2015 18:29
Show Gist options
  • Save jearle/97b5e19d3bf8c15238ac to your computer and use it in GitHub Desktop.
Save jearle/97b5e19d3bf8c15238ac to your computer and use it in GitHub Desktop.
/// <reference path="typings/angular2/angular2.d.ts" />
import {Component, View, bootstrap} from 'angular2/angular2';
@Component({
selector: 'my-app'
})
@View({
template: '<h1>Hello {{ name }}</h1><input type="button" value="fuck off" (click)="cM()">'
})
class MyAppComponent {
name: number;
constructor() {
this.name = 0;
}
cM() {
this.name++;
}
}
bootstrap(MyAppComponent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment