custom-directive

Trouble in filter table data between two selected dates using angularjs

烈酒焚心 提交于 2019-12-19 10:15:46
问题 I am working on filtering table content based on two selected dates. It do filter the date but result is not correct. dateRange Filter is written in controller. ProductionController angular.module('app').controller('ProductionController', ['$scope','$state','ProductionService','FarmerRepository', function(scope,state,ProductionService,FarmerRepository) { fetchAllUsers(); function fetchAllUsers() { ProductionService.fetchAllUsers().then(function(d) { produceList = d; scope.produceList =

Trouble in filter table data between two selected dates using angularjs

吃可爱长大的小学妹 提交于 2019-12-01 10:58:16
I am working on filtering table content based on two selected dates. It do filter the date but result is not correct. dateRange Filter is written in controller. ProductionController angular.module('app').controller('ProductionController', ['$scope','$state','ProductionService','FarmerRepository', function(scope,state,ProductionService,FarmerRepository) { fetchAllUsers(); function fetchAllUsers() { ProductionService.fetchAllUsers().then(function(d) { produceList = d; scope.produceList = produceList; }, function(errResponse) { console.error('Error while fetching produceList'); }); }; //this is