Aug 25, 2017 · 1 min read
To me, the @HostListener solution is better (and maybe easier to understand) in most of the cases, it will also unsubscribe automatically.
But, of course, your articles usually present solutions in a more advanced way or for some custom/specific case. That is the reason I love ALL your articles.
Thanks!
