Click here to Skip to main content
15,888,070 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to bind tree view control in shared layout page from database, how to write code for shared layout page. how to write controller code for shared layout page,

in normal view page am able to bind code by using controller

What I have tried:

shared layout
HTML
<table width="150px">
        <tr>
            <td>
                <script type="text/ng-template" id="treeMenu">
                    <a href="#">{{menu.Name}}</a>
                    <ul ng-if="(SiteMenu | filter:{ParentID : menu.Id}).length > 0">
                        <li ng-repeat="menu in SiteMenu | filter:{ParentID : menu.Id} : true" ng-include="'treeMenu'"></li>
                    </ul>
                </script>
                <ul class="main-navigation">
                    <li ng-repeat="menu in SiteMenu | filter:{ParentID : 0} : true" ng-include="'treeMenu'"></li>
                </ul>
            </td>
        </tr>
        <tr>
            <td>
                <a>{{SiteMenu.Description}}</a>
            </td>
        </tr>
    </table>
Posted
Updated 4-Jul-16 0:22am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900