angular-docs-cn/modules/payload_tests/hello_world/ts/webpack/index.ts

16 lines
342 B
TypeScript
Raw Normal View History

import {Component} from '@angular/core';
import {bootstrap} from '@angular/platform-browser';
@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);