16 lines
335 B
TypeScript
16 lines
335 B
TypeScript
|
import {Component} from 'angular2/core';
|
||
|
import {bootstrap} from 'angular2/bootstrap';
|
||
|
|
||
|
@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);
|