test: closure integration test for change detection (#14691)
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
import {Component, Injectable} from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'hello-world-app',
|
||||
template: '<div>Hello {{ name }}!</div>',
|
||||
template: `
|
||||
<div>Hello {{ name }}!</div>
|
||||
<input type="text" [value]="name" (input)="name = $event.target.value"/>
|
||||
`,
|
||||
})
|
||||
@Injectable()
|
||||
export class HelloWorldComponent {
|
||||
name: string = 'world';
|
||||
}
|
||||
|
Reference in New Issue
Block a user