I'm having a problem to set the focus on textbox.
Here I write the html of the component
<ejs-textbox id="Code" #codeInput type="text" name="Code" class="e-input" [(ngModel)]="code" maxlength="50" required></ejs-textbox>
in my component.ts I have :
@ViewChild('codeInput ') codeTextBox : TextBoxComponent;
and later after the page is load I call the:
this.codeTextBox .focusIn();
but I get the error:
typeError: focusIn is not a function
I have imported the module and the component, and everything works except the focus.
How can I do it?