UNPKG

clr-angular-static-fix

Version:

1. Install Clarity Icons package through npm:

32 lines (24 loc) 786 B
/* * Copyright (c) 2016-2018 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { Injectable } from '@angular/core'; import { Observable, Subject } from 'rxjs'; @Injectable() export class DateFormControlService { private _touchedChange: Subject<void> = new Subject<void>(); get touchedChange(): Observable<void> { return this._touchedChange.asObservable(); } private _dirtyChange: Subject<void> = new Subject<void>(); get dirtyChange(): Observable<void> { return this._dirtyChange.asObservable(); } markAsTouched(): void { this._touchedChange.next(); } markAsDirty(): void { this._dirtyChange.next(); } }