Skip to content

Instantly share code, notes, and snippets.

@jhades
Last active March 9, 2016 12:49
Show Gist options
  • Save jhades/1e5687756405316d3693 to your computer and use it in GitHub Desktop.
Save jhades/1e5687756405316d3693 to your computer and use it in GitHub Desktop.
test-hello-world
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