Using Factories and Promises in Angular to Decouple Directives | Hacker News Reader