@nbxx/nb-input
Version:
Angular - nbinput
21 lines • 654 B
JavaScript
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