update angular
This commit is contained in:
@@ -2,11 +2,13 @@ import {Directive, ElementRef, Input, OnInit} from '@angular/core';
|
||||
|
||||
@Directive({
|
||||
selector: '[appAutofocus]',
|
||||
standalone: false,
|
||||
})
|
||||
export class AutofocusDirective implements OnInit {
|
||||
private focus = true;
|
||||
|
||||
public constructor(private el: ElementRef<HTMLElement>) {}
|
||||
public constructor(private el: ElementRef<HTMLElement>) {
|
||||
}
|
||||
|
||||
@Input()
|
||||
public set autofocus(condition: boolean) {
|
||||
|
||||
@@ -7,4 +7,5 @@ import {AutofocusDirective} from './autofocus.directive';
|
||||
exports: [AutofocusDirective],
|
||||
imports: [CommonModule],
|
||||
})
|
||||
export class AutofocusModule {}
|
||||
export class AutofocusModule {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user