最佳答案
How can I get the host element reference in Angular 2?
In my case, I want to know if my component has a focus or not.