app.directive('atDirective', ['$http', 'config', function ($http, config) { return { templateUrl: config.rootPath+ 'templates/at.html', }; }]);