@clr/angular
Version:
Angular components for Clarity
46 lines (45 loc) • 1.49 kB
TypeScript
import { InjectionToken } from '@angular/core';
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare const IF_ACTIVE_ID: InjectionToken<number>;
export declare function tokenFactory(): number;
export declare const IF_ACTIVE_ID_PROVIDER: {
provide: InjectionToken<number>;
useFactory: typeof tokenFactory;
};
export declare class IfActiveService {
/********
* @property _currentChange
*
* @description
* A RXJS Subject that updates and provides subscriptions to for the current current state of a component template
* implemting the IfActive structural directive.
*
*/
private _currentChange;
/*********
* @property _current
*
* @description
* A property holding the current value for current/closed state of an IfActive structural directive.
*/
private _current;
/*********
*
* @description
* A getter function that provides an observable for the _current Subject.
*
*/
get currentChange(): Observable<number>;
/*********
*
* @description
* A property that gets/sets the current state of _current for this instance of IfActive structural directive.
* And, broadcasts the new value to all subscribers.
*
*/
get current(): number;
set current(value: number);
static ɵfac: i0.ɵɵFactoryDeclaration<IfActiveService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<IfActiveService>;
}