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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MayankPosted Nov 15, 2016, 5:31 AM
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}}
Joginder BangerPosted Jul 1, 2016, 9:05 PM