generator-xd-angular
Version:
AngularJS yeoman-generator using Angular-ui-router, sass-bootstrap, compass, mocha, gulp, font-awesome, ngdocs
23 lines (20 loc) • 471 B
JavaScript
(function () {
/**
* @ngdoc directive
* @name <%= moduleName %>:<%= camelizedName %>
* @restrict EA
* @element any
* @function
* @description
*/
angular.module('<%= moduleName %>', ['<%= vendorPrefix %>.tmpls'])
.directive('<%= camelizedName %>', <%= classifiedName %>);
/* @ngInject */
function <%= classifiedName %>() {
return {
restrict: 'EA',
replace: true,
templateUrl: '<%= templatePath %>'
};
}
})();