Hi Drisak,

Your plunk with the 2 lines I posted added to the controller:
http://codepen.io/SanderElias/pen/addgrb?editors=101

If you go with the parameter as shown by Rafeal, your function is not 
depended on the scope for it's input. Also you don't need another 
intermediate variable that serves no real purpose. Also I think the code is 
easier to read. If you read the function Refael provided, you don't have to 
wonder where $scope.feedSrc is originating.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to