code: function remove(id) {
                      var i;
                      for (i = 0; i < $scope.alerts.length; i += 1) {
                          if ($scope.alerts[i].id === id) {
                              $scope.alerts.splice(i, 1);
                              return;
                          }
                      }
                  }
docs: Removes a specific alert by id.