Skip to content

Commit

Permalink
refactor(forms): Make a couple small cleanups encountered while rebas…
Browse files Browse the repository at this point in the history
…ing typed forms. (#44748)

These should all be no-ops publicly; they are just small issues encountered during a large rebase to bring typed-forms current.

PR Close #44748
  • Loading branch information
dylhunn committed Jan 19, 2022
1 parent ece530f commit 41b8ecc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const formGroupNameProvider: any = {
*
* ### Access the group by name
*
* The following example uses the {@link AbstractControl#get get} method to access the
* The following example uses the `AbstractControl.get` method to access the
* associated `FormGroup`
*
* ```ts
Expand All @@ -53,7 +53,7 @@ export const formGroupNameProvider: any = {
*
* ### Access individual controls in the group
*
* The following example uses the {@link AbstractControl#get get} method to access
* The following example uses the `AbstractControl.get` method to access
* individual controls within the group using dot syntax.
*
* ```ts
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/test/form_array_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ describe('FormArray', () => {
it('should work with nested form groups/arrays', () => {
a = new FormArray([
new FormGroup(
{'c2': new FormControl('v2') as AbstractControl, 'c3': new FormControl('v3') as any}),
{'c2': new FormControl('v2') as AbstractControl, 'c3': new FormControl('v3')}) as any,
new FormArray([new FormControl('v4'), new FormControl('v5')])
]);
a.at(0).get('c3')!.disable();
Expand Down
3 changes: 1 addition & 2 deletions packages/forms/test/form_control_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
*/

import {fakeAsync, tick} from '@angular/core/testing';
import {FormControl, FormGroup, Validators} from '@angular/forms';
import {FormArray} from '@angular/forms/src/model';
import {FormArray, FormControl, FormGroup, Validators} from '@angular/forms';

import {asyncValidator, asyncValidatorReturningObservable} from './util';

Expand Down

0 comments on commit 41b8ecc

Please sign in to comment.