Copied to clipboard

Flag this post as spam?

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


  • Trent 15 posts 103 karma points
    Jan 19, 2015 @ 23:21
    Trent
    0

    Custom Treeview Links Through To Same Section

    I have created a custom section in umbraco that has a tree view.

    I need to be able to display different details on the right depending on what tree node is selected.

    I have followed all the guide lines I could find online, and every tree node links to the same page.

    I cannot find any way to get the ID of the request in the Angular controller.

     

    angular.module("umbraco").controller("LMSEditController", function ($scope) {
        // anyway i can get the tree node id?
    });

     

     

    Thanks for your help.

  • Trent 15 posts 103 karma points
    Jan 20, 2015 @ 00:47
    Trent
    100

    It's ok I can add the $routeParams into the function next to $scope and then I get all the Id's relative to the node I clicked on.

Please Sign in or register to post replies

Write your reply to:

Draft