javascript - dcDrilldown menu with angular not rendering correctly -
javascript - dcDrilldown menu with angular not rendering correctly -
im using angular load menu object db , using dcdrilldown render menu.
angular getting right menu object, , loading scope. top level displayed incorrectly, , none of sub objects displayed @ all.
heres screenshot of wrong rendering: http://imgur.com/levdtve.png
im not sure if problem angular code or dcdrilldown or what.
index.html
<body> <div ng-controller="menu" class="blue"> <ul id="drilldown-2"> <li> <a href="#0"> {{menu.text}}</a> <ul> <li ng-repeat="mi in menu.items"> <ng-include src="static/menuitem.html"></ng-include> </li> </ul> </li> </ul> </div> </body>
static/menuitem.html
<a class="list-group-item" ng-href="{{mi.href}}"> <i class="{{mi.icon}}"></i> {{mi.text}} </a> <ul ng-hide="!mi.items.length"> <li ng-repeat="mi in mi.items"> <ng-include src="'static/menuitem.html'"></ng-include></li> </ul>
please allow me know if more info needed.
javascript angularjs
Comments
Post a Comment