UNPKG

@rxap/material-form-system

Version:

Provides directives and a module to enhance Angular Material forms. It includes features such as displaying control errors, clearing input fields, handling required fields, and managing form field visibility based on defined conditions. The package also o

62 lines (33 loc) 1.89 kB
[**@rxap/material-form-system v19.0.4**](../README.md) *** [@rxap/material-form-system](../globals.md) / CompareWithDirective # Class: CompareWithDirective Defined in: [packages/angular/material/form-system/src/lib/compare-with.directive.ts:18](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/material/form-system/src/lib/compare-with.directive.ts#L18) ## Implements - `OnInit` ## Constructors ### new CompareWithDirective() > **new CompareWithDirective**(`matSelect`): [`CompareWithDirective`](CompareWithDirective.md) Defined in: [packages/angular/material/form-system/src/lib/compare-with.directive.ts:22](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/material/form-system/src/lib/compare-with.directive.ts#L22) #### Parameters ##### matSelect `MatSelect` #### Returns [`CompareWithDirective`](CompareWithDirective.md) ## Properties ### objectPath > **objectPath**: `string` Defined in: [packages/angular/material/form-system/src/lib/compare-with.directive.ts:20](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/material/form-system/src/lib/compare-with.directive.ts#L20) ## Methods ### ngOnInit() > **ngOnInit**(): `void` Defined in: [packages/angular/material/form-system/src/lib/compare-with.directive.ts:28](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/material/form-system/src/lib/compare-with.directive.ts#L28) A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated. #### Returns `void` #### Implementation of `OnInit.ngOnInit`