/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ export const FormErrorExamples = { formControlName: `
In your class: this.myGroup = new FormGroup({ firstName: new FormControl() });`, formGroupName: `
In your class: this.myGroup = new FormGroup({ person: new FormGroup({ firstName: new FormControl() }) });`, formArrayName: `
In your class: this.cityArray = new FormArray([new FormControl('SF')]); this.myGroup = new FormGroup({ cities: this.cityArray });`, ngModelGroup: `
`, ngModelWithFormGroup: `
` };