'use strict';

angular.module('<%= scriptAppName %>')
  .directive('<%= cameledName %>', function () {
    return {
      templateUrl: '<%= htmlUrl %>',
      restrict: 'EA',
      link: function (scope, element, attrs) {
      }
    };
  });
'use strict';
(function(){
  var <%= cameledName %> = function(){

    return {
      templateUrl: '<%= htmlUrl %>',
      restrict: 'EA',
      link: link
    };

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

    function link(scope, element, attrs) {

    }

  };
  angular
    .module('<%= scriptAppName %>')
    .directive('<%= cameledName %>', <%= cameledName %>);

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