Search Posts

Category: table

Filter table after click data AngularJS

I need to filter table – after click name in the list: <ul ng-repeat=”f in filter”> <li ng-model=”search.name”> <a class=”left-menu-link”> {{f}} </a> </li> </ul> The table should list only that name which I chose. My plunker: http://plnkr.co/edit/g1t4pludTTIAJYKTToCK?p=preview // Code goes here var app = angular.module(‘app’, []); app.controller(‘FirstCtrl’, function($scope) { $scope.data = [{ “name”: “afdfg Nixon”, “system”: “System Architect” }, { “name”: “sdfasdfas”, “system”: “System Architect” }, { “name”: “ggg Nigadfgxon”, “system”: “System Architect” }, { […]