-1
I am in a system that when you click on the "magnifying glass" is opened a modal with the information of History. But I am getting an error that the HTML page is not being found. Gulp is correct, when debugging I can see the path address, but is giving the following errors (follow the code too):
MinhaFactory.recuperarHistorico(filtro) //filtro com os dados certo
.then(function (response) {
var config = {
vm: {
listaHistorico: response.data.historico //está retornando os dados corretamente
},
size: "xl",
header: "Meu Titulo",
html: "/app/modulos/minha-pasta/view/historico.html"
};
modalService.exibirModalHtml(config);
})
.catch(function (error) {
console.log(error);
modalService.exibirMensagemErro("MEU TITULO | ERRO", error);
});
var exibirModalHtml = function (config, callback) {
var modalInstance = $uibModal.open({
animation: !0,
templateUrl: 'app/modulos/modal/views/modal-html.html'
controller:"ModalHtmlController",
controllerAs: "vm",
size: config.size || "md"
backdrop: 'static',
resolve: {
data: function () {
return {
"vm": config.vm,
"header": config.header,
"html": config.html,
"buttons": config.buttons || [],
"callback": callback
}
}
}
});
return modalInstance.result;
}
tries to clear the cache, run Gulp again and redo the test.
– Alvaro Alves