Hi,
I have a form that contains many fields
exp :
exp :
Products is an Object
$scope.master={};
$scope.master = angular.copy(form);
I want to get Products.Id and put it to $scope.master and NOT get the Object Product.
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question.
MayankPosted Nov 22, 2016, 8:30 AM
Html:
Cars:
You selected: {{selectedCar}}
Controller:
var cars = [
{ Name: "Alto", Createdby: "Maruti",IsActive:"true" },
{ Name: "Figo", Createdby: "Ford",IsActive:"true" },
{ Name: "Innova", Createdby: "Hyundai", IsActive: "true" },
{ Name: "TATA", Createdby: "Nano", IsActive: "true" },
{ Name: "Maruti 800", Createdby: "Maruti", IsActive: "false" },
];
$scope.cars = cars;
If u think it resolve your issue please marked as answer.
Bikesh SrivastavaPosted Oct 12, 2016, 9:24 AM