Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Max 80 posts 437 karma points
    Dec 18, 2017 @ 20:15
    Max
    0

    navigationService.syncTree

    My call to navigationService.syncTree isn't being called. If I put a console.info on syncArgs it never reaches it...

    featuresResource.save($scope.feature).then(function (response) {
    
                $scope.loaded = true;
                $scope.featuresForm.$setPristine();
                $scope.feature = response.data;
    
                //$scope.featuresForm.$dirty = false;
                navigationService.syncTree({ tree: "Features", path: ["-1", "Features", $scope.feature.id], forceReload: true })
                    .then(function (syncArgs) { console.info(syncArgs); }); .....
    

    This example follows working code in the umbraco.controllers.js so I'm not sure why I can't see the promise ever being executed.

  • Markus Johansson 1945 posts 5899 karma points MVP 2x c-trib
    Dec 22, 2017 @ 13:45
    Markus Johansson
    0

    Hi!

    Do you see any errors in the log?

    Is the path correct? ["-1", "Features", $scope.feature.id].

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies