Skip to content

Consider removing objects from model instead full page reload #112

Description

@wingsofovnia

Such requests:

$scope.deleteStation = function (name, location) {
    $http.delete(location).then(function () {
      $scope.loadPage($scope.currentPageIndex(), function () {
        $scope.addAlert('Station \'' + name + ' \' has been deleted!', 'success');
      });
    }, function (error) {
      $scope.addAlert('Error happened: \'' + error.data.message + ' \'', 'danger');
    });
  };

Reload the whole page that can be very heavyweight. Consider removing objects from angular model instead full page reload:

delete $scope.page.stations[index]

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions