Add a value to localstorage and not replacing it
<p>I want the value from ngStorage to be added to locastorage addIdMatch. whereas in my code, it replaces an already existing value when I refresh the page.</p>

<pre><code> $scope.addIdMatch = function(infoMatchHomeTeam, infoMatchGoalHomeTeam, infoMatchGoalAwayTeam, infoMatchAwayTeam) {
    $i = $i +1
    $localStorage[$i] = {
      infoMatchHomeTeam, infoMatchGoalHomeTeam, infoMatchGoalAwayTeam, infoMatchAwayTeam
    }
  };
</code></pre>