<table ng-table="talentPoolList" show-filter="true" class="table table-striped table-bordered"> <tr ng-repeat="employee in data | filter: testFilter"> <td data-title="'#'">{{$index + 1}}</td> <td data-title="'Select Account'" ng-hide="showhide"> <select> <option disabled selected value> -- select an option -- </option> <option id="selectedLocked">Blocked</option> <option id="selectedBilled">Billed<//option> <option id="selectedShadow">Shadow</option> <option id="selectedOnNotice">OnNotice</option> <option id="selectedPOC">POC</option> </select> </td> </table>
//Factories myApp.factory('employeeTalentPoolServices', ['$http', function ($http) { var factoryDefinitions = { getAllBenchers: function () { return $http.get(myApp.TalentPoolBaseUrl + '/EmployeeState?state=&pageNumber=0&pageSize=0').success(function (data) { return data; }); } } return factoryDefinitions; } ]); //Controllers myApp.controller('getAllBenchersController', ['$scope', 'employeeTalentPoolServices', function ($scope, employeeTalentPoolServices) { employeeTalentPoolServices.getAllBenchers().then(function (result) { $scope.data = result.data; $scope.testFilter = function (item) { return (item.state.state.toLowerCase() === 'available' || item.state.state.toLowerCase() === 'blocked'); } }); }]);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)