2016-04-28 20:50:03 -04:00
|
|
|
import {Component} from '@angular/core';
|
|
|
|
import {bootstrap} from '@angular/platform-browser';
|
2016-01-08 11:51:02 -05:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'hello-app',
|
|
|
|
template: `
|
|
|
|
<h1>Hello, {{name}}!</h1>
|
|
|
|
<label> Say hello to: <input [value]="name" (input)="name = $event.target.value"></label>
|
|
|
|
`
|
|
|
|
})
|
|
|
|
export class HelloCmp {
|
|
|
|
name = 'World';
|
|
|
|
}
|
|
|
|
|
|
|
|
bootstrap(HelloCmp);
|