I need to be able to switch focus to an input element when some event occurs. How do I do that in Angular 2?
For example:
Actually you don't need to write any TS code for that (I'm using one of the other answer's example):