fixes prop editor view path

This commit is contained in:
Shannon
2013-06-25 22:15:33 +10:00
parent 5148687ed3
commit 3de98b60c4
3 changed files with 6 additions and 27 deletions

View File

@@ -1,10 +1,13 @@
angular.module("umbraco.directives")
.directive('umbProperty', function () {
.directive('umbProperty', function (umbPropEditorHelper) {
return {
scope: true,
restrict: 'E',
replace: true,
templateUrl: 'views/directives/umb-property.html'
templateUrl: 'views/directives/umb-property.html',
link: function(scope, element, attrs, ctrl) {
scope.propertyEditorView = umbPropEditorHelper.getViewPath(scope.model.view);
}
};
});

View File

@@ -15,7 +15,7 @@
</label>
<div class="controls controls-row" >
<ng-include src="model.view"></ng-include>
<ng-include src="propertyEditorView"></ng-include>
</div>
</div>
</div>