javascript - Dynamically generated navbar and AngularJS -
i not find easy way explain following, apologize if not clear enough. i have navigation bar each item category of articles. navigation item read database , can modified back-office. i categories via angularjs controller : app.controller('apicontroller', ['$scope', '$http', function($scope, $http) { $http.get('/categories') .success(function(categories) { $scope.categories = categories; }); }]); <div class="collapse navbar-collapse" id="target-navbar-main"> <ul class="nav navbar-nav"> <li ng-repeat="category in categories"> <a href="/<% category.slug %>" title="<% category.name %>"><% category.name %></a> </li> </ul> </div> in body of page, using controller articles of given category can't find way make navbar communicate arti