migrate angular 21 finalize
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import {Directive, ElementRef, Input, OnInit} from '@angular/core';
|
||||
import {Directive, ElementRef, Input, OnInit, inject} from '@angular/core';
|
||||
|
||||
@Directive({selector: '[appAutofocus]'})
|
||||
export class AutofocusDirective implements OnInit {
|
||||
private focus = true;
|
||||
|
||||
public constructor(private el: ElementRef<HTMLElement>) {}
|
||||
private el = inject<ElementRef<HTMLElement>>(ElementRef);
|
||||
|
||||
@Input()
|
||||
public set autofocus(condition: boolean) {
|
||||
|
||||
Reference in New Issue
Block a user