ng-jhipster
Version:
A Jhipster util library for Angular
20 lines (19 loc) • 778 B
TypeScript
import { ElementRef, OnChanges, OnInit, OnDestroy } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { JhiConfigService } from '../config.service';
/**
* A wrapper directive on top of the translate pipe as the inbuilt translate directive from ngx-translate is too verbose and buggy
*/
export declare class JhiTranslateDirective implements OnChanges, OnInit, OnDestroy {
private configService;
private el;
private translateService;
jhiTranslate: string;
translateValues: any;
private readonly directiveDestroyed;
constructor(configService: JhiConfigService, el: ElementRef, translateService: TranslateService);
ngOnInit(): void;
ngOnChanges(): void;
ngOnDestroy(): void;
private getTranslation;
}