I am developing a component in Angular2 (Beta 8). The component has a textbox and a dropdown. I would like to set the focus in textbox as soon as component is loaded or on c
{{ myInput.focus() }}
this is the best and simplest way, because code "myInput.focus()" runs after input created