refactor umb editor view directive to follow angular style guide
This commit is contained in:
@@ -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);
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user