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
See Angular 2: Focus on newly added input element for how to set the focus.
For "on load" use the ngAfterViewInit() lifecycle callback.
ngAfterViewInit()