I\'m dynamically creating inputs with *ngFor. So, I would like to set focus on the last created input. Could someone help me?
This is my
There are multiple ways to do it but this code is just using template
U can do it with ngFor last like this
{{lastOne.focus()}}
another way to do it like this.
feel free to choose
https://stackblitz.com/edit/angular-7-master-g3qsmt?file=src%2Fapp%2Fapp.component.html