Hello friends please help me
how to bind the values into dropdown list using mvc angularjs & also when value change in drplist the according to that table data also change
mean if i select id 2 immediatly 2 record come sooo
Thank u
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Joginder BangerRank #360 · 7K reputationPosted Jul 1, 2016, 5:05 PM EDT
MayankRank #4,018 · 371 reputationPosted Nov 15, 2016, 12:31 AM EST
var cars = [
{ Name: "Alto", Createdby: "Maruti" },
{ Name: "Figo", Createdby: "Ford" },
{ Name: "Innova", Createdby: "Hyundai" },
{ Name: "TATA", Createdby: "Nano" },
];
$scope.cars = cars;
$scope.update = function () {
$scope.cars = $filter('filter')(cars, { Createdby: $scope.selectedCar });
}
});
Cars:
You selected: {{selectedCar}}
Name
Createdby
{{car.Name}}
{{ car.Createdby}}