Last active
March 9, 2016 12:49
-
-
Save jhades/1e5687756405316d3693 to your computer and use it in GitHub Desktop.
test-hello-world
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
import {Component} from 'angular2/core'; | |
import {bootstrap} from 'angular2/platform/browser'; | |
@Component({ | |
selector: 'hello-world', | |
template: `<input placeholder="Type Hello World !" | |
(keyup)="hello(input.value)" #input> {{message}}` | |
}) | |
export class HelloWorld { | |
private message = ""; | |
hello(value) { | |
this.message = value; | |
} | |
} | |
bootstrap(HelloWorld); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment