import { AbstractControl } from '@angular/forms' ; import { Observable , defer , merge , of } from 'rxjs' ; export function formControlValue$ < T > ( formControl ) { return merge ( defer ( ( ) => of ( formControl . value ) ) , formControl . valueChanges ) ; }