UNPKG

ngx-app-version

Version:

Angular directive for writing version into DOM

25 lines (20 loc) 851 B
import * as i0 from '@angular/core'; import { OnInit, InjectionToken, Provider } from '@angular/core'; /** * @returns app version */ declare class NgxAppVersionDirective implements OnInit { private readonly options; private readonly element; private readonly renderer; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgxAppVersionDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<NgxAppVersionDirective, "[ngxAppVersion]", never, {}, {}, never, never, true, never>; } interface NgxAppVersionOptions { version: string; } declare const APP_VERSION_OPTIONS_TOKEN: InjectionToken<NgxAppVersionOptions>; declare const provideAppVersion: (options: NgxAppVersionOptions) => Provider; export { APP_VERSION_OPTIONS_TOKEN, NgxAppVersionDirective, provideAppVersion }; export type { NgxAppVersionOptions };