'use strict';

angular.module('<%= scriptAppName %>')
  .directive('<%= cameledName %>', function () {
    return {
      template: '<div></div>',
      restrict: 'EA',
      link: function (scope, element, attrs) {
        element.text('this is the <%= cameledName %> directive');
      }
    };
  });
'use strict';
(function(){

  var <%= cameledName %> = function(){
    return {
      template: '<div></div>',
      restrict: 'EA',
      link: link
    };

    //////////////

    function link(scope, element, attrs) {
      element.text('this is the <%= cameledName %> directive');
    }
  };
  angular
    .module('<%= scriptAppName %>')
    .directive('<%= cameledName %>', <%= cameledName %>);

}).call(this);
Refactor Javascript Directive Simple to match best practices
Update: Refactor Javascript Directive Simple to match best practices
