initial commit

This commit is contained in:
2021-10-03 17:40:30 +02:00
commit 4db665a4c0
97 changed files with 19365 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { Directive, ElementRef, OnInit } from '@angular/core';
import { MatInput } from '@angular/material/input';
@Directive({
selector: '[matAutofocus]',
})
export class AutofocusDirective implements OnInit {
constructor(private element: ElementRef) { }
ngOnInit() {
setTimeout(() => {
this.element.nativeElement.focus();
this.element.nativeElement.scrollIntoView();
})
}
}