I create a modal component with NgbModal which contains some input elements. When the Modal opens the first input element should be opened, however I didn't find a way, to focus the Input element after the modal opens.
I can get get the input element (focus-on-newly-added-input-element), but when I call this after the calling `this.modalService.open(...), it doesn't focus anything, because the element doesn't exist in the DOM yet.
So I would have to call it once the modal is rendered.
This is what I have so far:
open(content) {
this.modalService.open(content, { size: 'lg' });
// TODO
}
PS: I found this answer for angularjs and boostrap 3: Call function after modal loads angularjs ui bootstrap