UNPKG

k15t-aui-ng2

Version:

aui-ng2 is a set of angular 2 components, directives and services to simplify the integration with Atlassian products based on AUI/ADG. The library is still under development and is considered in an experimental state. So be aware that things will change

17 lines (13 loc) 373 B
import {AJS} from '../common/libs/aui'; import {AfterViewInit, Directive, ElementRef} from '@angular/core'; @Directive({ selector: '[auiNgTooltip]' }) export class AuiNgTooltipDirective implements AfterViewInit { constructor( private elementRef: ElementRef ) {} ngAfterViewInit() { AJS.$(this.elementRef.nativeElement).tooltip(); } }