UNPKG

@nbxx/nb-input

Version:
21 lines 654 B
import { Directive, ElementRef, Renderer } from "@angular/core"; export class NbinputFocusDirective { constructor(renderer, elementRef) { this.renderer = renderer; this.elementRef = elementRef; } ngOnInit() { this.renderer.invokeElementMethod(this.elementRef.nativeElement, 'focus', []); } } NbinputFocusDirective.decorators = [ { type: Directive, args: [{ selector: 'nbinput-focus' },] }, ]; /** @nocollapse */ NbinputFocusDirective.ctorParameters = () => [ { type: Renderer }, { type: ElementRef } ]; //# sourceMappingURL=nbinput-focus.directive.js.map