File

projects/angular/directives/ui-matformfield-required/src/ui-matformfield-required.directive.intl.ts

Index

Properties
Methods

Methods

ngOnDestroy
ngOnDestroy()
Returns : void

Properties

changes
Default value : new Subject<void>()

Notify if changes have occured that require that the labels be updated.

tooltipMessage
Type : string
Default value : 'This field is required.'
import { Subject } from 'rxjs';

import {
    Injectable,
    OnDestroy,
} from '@angular/core';

@Injectable()
export class UiMatFormFieldRequiredIntl implements OnDestroy {
    /**
     * Notify if changes have occured that require that the labels be updated.
     *
     */
    // eslint-disable-next-line rxjs/finnish
    changes = new Subject<void>();

    tooltipMessage = 'This field is required.';

    ngOnDestroy() {
        this.changes.complete();
    }
}

results matching ""

    No results matching ""