Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.Delete = function (){
- $http({
- method: 'POST',
- url: 'http://api.espaciosvirtuales.info/public/index.php/read_userCredentials',
- data: {
- email : $scope.email,
- password : $scope.password,
- }
- }).then(function successCallback(response) {
- // this callback will be called asynchronously
- // when the response is available
- console.log("Éxito");
- console.log(response)
- $ionicLoading.show({
- template: '<ion-spinner></ion-spinner>'
- });
- $timeout(function() {
- $ionicLoading.hide();
- $state.go('welcome');
- }, 2000);
- }, function errorCallback(response) {
- // called asynchronously if an error occurs
- // or server returns response with an error status.
- console.log("Error");
- console.log(response);
- response.data = Object.values(response.data).toString();
- $scope.showPopupError();
- });
- }// END OF DELETE FUNCTION
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement