Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/src/views/components/elementeditor/umbelementeditorcontent.component.js
T
2020-07-03 12:22:14 +02:00

28 lines
760 B
JavaScript

(function () {
'use strict';
angular
.module('umbraco.directives')
.component('umbElementEditorContent', {
templateUrl: 'views/components/elementeditor/umb-element-editor-content.component.html',
controller: ElementEditorContentComponentController,
controllerAs: 'vm',
bindings: {
model: '='
}
});
function ElementEditorContentComponentController($scope) {
// We need a controller for the component to work.
var vm = this;
vm.getScope = getScope;// used by property editors to get a scope that is the root of split view, content apps etc.
function getScope() {
return $scope;
}
}
})();