당신은 navigationService을 찾고 있습니다.
navigationService.syncTree({ tree: 'clients', path: content.path, forceReload: false, activate: true });
가 여기 인위적인, 스파게티 약속하지만 전체 예제 :
이 줄은 syncTree 호출의 예입니다
angular.module("umbraco")
.directive('nowplaying', ['navigationService', 'contentResource', 'contentEditingHelper', function (navigationService, contentResource, contentEditingHelper) {
//spaghetti example to create new document
contentResource.getScaffold(parentId, alias)
.then(function (scaffold) {
var myDoc = scaffold;
myDoc.name = name;
//we have minimum to publish
contentResource.publish(myDoc, true, [''])
.then(function (content) {
$scope.newlyCreatedNode = content;
//Sync ('refresh') the tree!
navigationService.syncTree({ tree: 'clients', path: content.path, forceReload: false, activate: true });
});
});
}]);
Belle documentation lives here의 모든. - 적극적으로 유지 관리되고 있는지 확신 할 수는 없지만 처음 게시 된 이래로 하나 또는 두 개의 서명이 변경되었다고 말할 수 있습니다. 그건 제쳐두고, 내가 umbraco 노출 모듈 및 서비스와 상호 작용하는 것을 알고있는 최고의 리소스입니다.