I've some function like this:
$scope.activeimageset = function(id){}
Now, I pass some parameter as ID to mentioned function, and I want to select some variable using gathered parameter, something like this:
$scope.activeimageset = function(id){$scope.img{{id}}.src1 = $scope.img{{id}}.src2;}
That's mean I want to select some object using parameter passed to my function and then I set one of the attributes of that object to another attribute. How can I do that? I know my code is wrong and doesn't work, but I want to know how can I make it work?
idundefined in the function body?{{}}inside your ngController, please provide some more details.