I'm facing an issue with a block of code I have.
<ul ng-repeat="object in objects">
...
</ul>
Additionally, there is this function present:
<script>
function f(a){
...
}
</script>
Each object
consists of 2 elements. Now, the task is to pass each object
as an argument to the function f()
.
Is there a way to achieve this? Passing object[0]
and object[1]
as separate arguments is also considered.
Since I am new to angularJS and lack knowledge about it, finding a solution on my own seems challenging.