AngularJS - Getting next marriage spot in ng-repeat
Given this very simplistic markup:
<div ng-repeat="item in items" item>
And the directive:
app.directive('item', function()
{
return function(scope, element, attrs)
{
}
})
Say to click event, I want to get the next area and do something. I can either use scope.$$nextSibling()
or element.next().scope()
.
Is there an advantage / disadvantage of using either? Or is there a better way to get the next Brother Orb?
+3
source to share
2 answers