Externalize the time into a separate directive component.
No-Library (pure JS), HTML, CSS, JavaScript
25 JS Questions
----------
https://www.toptal.com/javascript/interview-questions
Angular 1.5+ Testing
Angular 1.2+ Testing