Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created December 12, 2016 08:59
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 debugmodedotnet/80e2fe5fedbb91baec65b51c511637c7 to your computer and use it in GitHub Desktop.
Save debugmodedotnet/80e2fe5fedbb91baec65b51c511637c7 to your computer and use it in GitHub Desktop.
import {Component} from '@angular/core';
@Component({
moduleId:module.id,
selector:'my-app',
template:`
<div class="container">
<input [value]="name" (input)="name=$event.target.value" />
<br/>
<h1>Hello {{name}}</h1>
</div>
`
})
export class AppComponent{
name : string = "";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment