i am new in angular. so i was reading write up just to accomplish my job.
this way i will try but not sure that am i going in right direction? here
is my sample code
<ul>
<li ng-repeat="parent in items">{{parent.pitem}}
<ul>
<li ng-repeat="child in parent.citems">{{child.pitem }}</li>
</ul>
</li></ul>
var app = angular.module('myapp', []);
app.controller('MyCtrl', function ($scope) {
$scope.items = [{ "pitem": "Coffee", "citems": "" }, { "pitem": "Tea",
"citems": [{ "pitem": "Black tea", "citems": "" }, { "pitem": "Green tea",
"citems": "" }] }, { "pitem": "Milk", "citems": "" }]
});
[image: enter image description here] <http://i.stack.imgur.com/pgcIW.png>
i actually i need to show employee hierarchy like manager and their
subordinate.
i also read this too on the same kind of topic written by @zsong
http://stackoverflow.com/a/18295177/6188148
so please help me to generate tabular output with ng-repeat using ul,li and
end user should be able to expand collapse rows too. please have a look at
this url
http://maxazan.github.io/jquery-treegrid/examples/example-bootstrap-3.html i
want similar kind of output but with ng-repeat. i am trying to know how to
generate output like tree grid using ng-repeat.
please guide and suggestion.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.