How to write a proper Angular Directive | Hacker News Reader