Skip to content

Instantly share code, notes, and snippets.

@jhades
Last active May 12, 2016 07:27
Show Gist options
  • Save jhades/c926f76c81a5a448135fdc1ca2cb5abe to your computer and use it in GitHub Desktop.
Save jhades/c926f76c81a5a448135fdc1ca2cb5abe to your computer and use it in GitHub Desktop.
@Component({
selector: 'app',
template: `
<input value="Hello World !" #input>{{input.value}}
<button (click)="onClick()">Click Me</button>
`
})
export class App {
onClick() {
alert("Hello !");
debugger;
}
}
bootstrap(App);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment