Hi Mahtab...
Do yourself a favor and drop jQuery, (at least for a while). Try to prefer
native JS over any framework/library. Will make your life a lot easier.
if (resp.some(function(e) {
return $scope.articles.some( func(art) {
return art.Title === e.Title;
})
})
) {
//there is a match
} else {
// there is no match
}
I'm not sure what you are up to with this code, so this is only a partial
solution.
Hope it helps you a bit,
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular" 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.