How to write a proper Angular Directive | Dark Hacker News