refactor umb editor view directive to follow angular style guide

This commit is contained in:
Mads Rasmussen
2015-08-28 13:04:18 +02:00
parent 4cce3c6f1b
commit 8219429cc1

View File

@@ -1,9 +1,18 @@
angular.module("umbraco.directives.html")
.directive('umbEditorView', function () {
return {
transclude: true,
restrict: 'E',
replace: true,
templateUrl: 'views/components/editor/umb-editor-view.html'
};
});
(function() {
'use strict';
function EditorViewDirective() {
var directive = {
transclude: true,
restrict: 'E',
replace: true,
templateUrl: 'views/components/editor/umb-editor-view.html'
};
return directive;
}
angular.module('umbraco.directives').directive('umbEditorView', EditorViewDirective);
})();