I have [this issue here recorded on a video](https://www.youtube.com/watch?v=OetU7pqMAkg) for you to understand easier. As you can see, I am selecting some elements from an array and pushing those elements to another array named `$scope.favoriteLeague = [];` in order to do a favorite list of leagues, in that video I am pushing the element as many times as I want and I do not want that, I want to be able to choose only once every element to be on the list, and if the user tries to choose an element that is already on the favorites array, then shows a message.

I am using `lodash` and `angular`, this is the code:

```
$scope.favoriteLeague = []; 

$scope.addToFavorites = function(league) {

   $scope.favoriteLeague.push(league);

};

```

html

```
<ion-item ng-repeat="league in favoriteLeague">

    {{league.name}}

</ion-item>

```