Created
November 3, 2016 10:37
-
-
Save jleonardolemos/d23054bdbc0dd1922be3ecab62347c59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
headers: { | |
"Content-Type": undefined // remove o content-type | |
}, | |
transformRequest: angular.identity // não transforma os parâmetros | |
}; | |
$http.post("/api/work-with-us", data, config).then(function(result){ | |
if(result){ | |
$log.info("Service_formularios: Trabalhe conosco enviado!"); | |
callback.resolve(true); | |
}else{ | |
$log.error("Service_formularios: Trabalhe conosco não foi possível enviar..."); | |
callback.reject(false); | |
} | |
}, function(result){ | |
$log.error("Service_formularios: Trabalhe conosco não foi possível enviar..."); | |
callback.reject(false); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
upload de arquivo com angular 1