MCPcopy Index your code
hub / github.com/angular/angular / App

Class App

packages/forms/test/reactive_integration_spec.ts:392–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390
391 it('should sync the disabled state if it changes right after a group is re-bound', () => {
392 @Component({
393 template: `
394 <form [formGroup]="form">
395 <input formControlName="input" />
396 </form>
397 `,
398 standalone: false,
399 changeDetection: ChangeDetectionStrategy.Eager,
400 })
401 class App {
402 form: FormGroup;
403
404 constructor(private _fb: FormBuilder) {
405 this.form = this._getForm();
406 }
407
408 private _getForm() {
409 return this._fb.group({'input': 'value'});
410 }
411
412 recreateAndDisable() {
413 this.form = this._getForm();
414 this.form.disable();
415 }
416 }
417
418 const fixture = initTest(App);
419 fixture.detectChanges();

Callers

nothing calls this directly

Calls 1

ComponentInterface · 0.90

Tested by

no test coverage detected