Dashboard/Widgets functionality with AngularJS (Directive)