UNPKG

@ngx-uk-frontend/core

Version:

Core utilities and shared functionality for ngx-uk-frontend libraries

9 lines (8 loc) 395 B
import { FormControlDirective, FormControlName, NgModel } from '@angular/forms'; /** * Injects and validates the NgControl instance for form control components. * * @returns {NgControl} The injected NgControl instance. * @throws {Error} If NgControl is not found or is not of an expected type. */ export declare function injectNgControl(): FormControlDirective | FormControlName | NgModel;