using angular.module and directive to define this