Histórico da Página
...
| Bloco de código | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
appHTTPInterceptors.$inject = ['$q'];
function appHTTPInterceptors($q) {
...
return {
request: function (config) {
return config || $q.when(config);
},
requestError: function (rejection) {
return rejection;
},
response: function (response) {
return response;
},
responseError: function (rejection) {
return rejection;
}
};
}
// Registra a AngularJS Factory para customização do httpInterceptor padrão do AngularJS.
index.factory('appHTTPInterceptors', appHTTPInterceptors); |
...
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas