$scope.save = function () {
    $scope.saving = true;
    $scope.providerConfig($scope.config, function () {
      $scope.saving = false;
    });