style(forms): reformat of the forms
package after clang update (#36466)
PR Close #36466
This commit is contained in:

committed by
Kara Erickson

parent
aeb6d0d0f7
commit
f48a065db0
@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Directive, ElementRef, Renderer2, forwardRef} from '@angular/core';
|
||||
import {Directive, ElementRef, forwardRef, Renderer2} from '@angular/core';
|
||||
|
||||
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';
|
||||
|
||||
@ -84,7 +84,9 @@ export class NumberValueAccessor implements ControlValueAccessor {
|
||||
* @param fn The callback function
|
||||
*/
|
||||
registerOnChange(fn: (_: number|null) => void): void {
|
||||
this.onChange = (value) => { fn(value == '' ? null : parseFloat(value)); };
|
||||
this.onChange = (value) => {
|
||||
fn(value == '' ? null : parseFloat(value));
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
@ -93,7 +95,9 @@ export class NumberValueAccessor implements ControlValueAccessor {
|
||||
*
|
||||
* @param fn The callback function
|
||||
*/
|
||||
registerOnTouched(fn: () => void): void { this.onTouched = fn; }
|
||||
registerOnTouched(fn: () => void): void {
|
||||
this.onTouched = fn;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the "disabled" property on the input element.
|
||||
|
Reference in New Issue
Block a user