Here is the code snippet I am working with:
$scope.testByValue = function() {
$scope.fChanged($scope.lists.title);
};
But I am facing an issue on the page where the value for:
$scope.testValue = testValue;
The variable testValue
is being assigned an array. How can I ensure that when I do:
ng-click="testByValue(testValue)"
I can access the value of each individual element every time?
Currently, I am able to generate the correct HTML markup, but the value always ends up being the last value stored in testValue.