I'm creating a tree view similar to workflowy (for practice mostly), and this simple version is working but I can't figure out how to set the input focus when a new component is added.
I've tried adding the autofocus property on the input and using ViewChild to set focus after ngAfterViewInit. It seems to work when adding the first component but not thereafter.
Here is a stackblitz to show where i'm at:
the easer way to "autofocus" in a recently component created is using ViewChildren
But, seeing your stackblitz, I can not imagine what you want to do