getModuleFactory()

Experimental Function Class Export export getModuleFactory(id: string) : NgModuleFactory<any> Returns the NgModuleFactory with the given id, if it exists and has been loaded. Factories for modules that do not specify an id cannot be retrieved. Throws if the module cannot be found. exported from @angular/core/index defined in @angular/core/src/linker/ng_module_factory_loader.ts

ForwardRefFn

Experimental Interface Interface Overview interface ForwardRefFn { } Interface Description An interface that a function passed into forwardRef has to implement. Example let ref = forwardRef(() => Lock); exported from @angular/core/index, defined in @angular/core/src/di/forward_ref.ts

getPlatform()

Experimental Function Class Export export getPlatform() : PlatformRef Returns the current platform. exported from @angular/core/index defined in @angular/core/src/application_ref.ts

FormGroupName

Stable Directive What it does Syncs a nested FormGroup to a DOM element. How to use This directive can only be used with a parent FormGroupDirective (selector: [formGroup]). It accepts the string name of the nested FormGroup you want to link, and will look for a FormGroup registered with that name in the parent FormGroup instance you passed into FormGroupDirective. Nested form groups can come in handy when you want to validate a sub-group of a form separately from the rest or when you'd li

forms

Module Entry point for all public APIs of the forms package. AbstractControl AbstractControlDirective AbstractFormGroupDirective AsyncValidatorFn CheckboxControlValueAccessor ControlContainer ControlValueAccessor DefaultValueAccessor Form FormArray FormArrayName FormBuilder FormControl FormControlDirective FormControlName FormGroup FormGroupDirective FormGroupName FormsModule MaxLengthValidator MinLengthValidator NG_ASYNC_VALIDATORS NG_VALIDATORS NG_VALUE_ACCESSOR NgControl NgControlStatus NgCo

FormGroupDirective

Stable Directive What it does Binds an existing FormGroup to a DOM element. How to use This directive accepts an existing FormGroup instance. It will then use this FormGroup instance to match any child FormControl, FormGroup, and FormArray instances to child FormControlName, FormGroupName, and FormArrayName directives. Set value: You can set the form's initial value when instantiating the FormGroup, or you can set it programmatically later using the FormGroup's setValue or patchValue metho

FormGroup

Stable Class What it does Tracks the value and validity state of a group of FormControl instances. A FormGroup aggregates the values of each child FormControl into one object, with each control name as the key. It calculates its status by reducing the statuses of its children. For example, if one of the controls in a group is invalid, the entire group becomes invalid. FormGroup is one of the three fundamental building blocks used to define forms in Angular, along with FormControl and FormArr

FormControl

Stable Class What it does Tracks the value and validation status of an individual form control. It is one of the three fundamental building blocks of Angular forms, along with FormGroup and FormArray. How to use When instantiating a FormControl, you can pass in an initial value as the first argument. Example: const ctrl = new FormControl('some value'); console.log(ctrl.value); // 'some value' You can also initialize the control with a form state object on instantiation, which includes

FormControlDirective

Stable Directive What it does Syncs a standalone FormControl instance to a form control element. In other words, this directive ensures that any values written to the FormControl instance programmatically will be written to the DOM element (model -> view). Conversely, any values written to the DOM element through user input will be reflected in the FormControl instance (view -> model). How to use Use this directive if you'd like to create and manage a FormControl instance directly. S

FormControlName

Stable Directive What it does Syncs a FormControl in an existing FormGroup to a form control element by name. In other words, this directive ensures that any values written to the FormControl instance programmatically will be written to the DOM element (model -> view). Conversely, any values written to the DOM element through user input will be reflected in the FormControl instance (view -> model). How to use This directive is designed to be used with a parent FormGroupDirective (sel