Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div>{{parent.name}}</div>
- <div ng-repeat="child in children | filter: {id: {{parent.id}}}">
- {{child.name}}
- </div>
- app.controller("parentCtrl", function($scope, $location, $routeParams, $http) {
- //Get parent
- $scope.children = [];
- $http.get('/children').success(function(children) {
- $scope.loaded = true;
- $scope.children = children;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement