Created
December 12, 2016 08:59
-
-
Save debugmodedotnet/80e2fe5fedbb91baec65b51c511637c7 to your computer and use it in GitHub Desktop.
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 '@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