0
我有項目,用於檢查詳細信息頁面。當我使用過濾器進行過濾時,我遇到了問題。有從1到10的id。如果我用1過濾它將顯示2個數據。從數據1和數據10.從StateParam角度等於Ng重複過濾器
我想如果我過濾1,只有1顯示。我試試這個:
filter: {id: partyid}:true
但它不能。
$http.get('http://api.pemiluapi.org/partai/api/parties?apiKey=c6a0237499f3e4197546b5551a3a864f')
.then(function(res){
$scope.parties = res.data;
$scope.partyid = $stateParams.partyId;
//alert(res.data);
});
你能提供一個plunker? –