I'm doing a service consumption and I want to add a header to the get method in the following way.
var header={headers: {'idUser': Constants.appConfig.userParam} };
return {
obtenerInformacionUsuario: () =>
$http.get(${BASE_URL2}/obtenerInformacionUsuario, header)
}
In Constants.appConfig.userParam
a string is saved, the service returns data and everything but the problem is that I do not add the idUser to the Request Headers.