I defined this async route in routes.js
},
// Async
{
path: '/ouvidoria/',
async: function (routeTo, routeFrom, resolve, reject) {
// Requested route
console.log(routeTo);
// Get external data and return template7 template
this.app.request.json('https:*******************************l', function (data) {
resolve(
// How and what to load: template
{
componentUrl: './pages/ouvidoria.f7.html',
},
// Custom template context
{
context: {
chamadosAbertosOuvidoria: data,
},
}
);
});
}
},
but, when i call the route, the following error appears:
I’am trying to get componentUrl with import, but without sucess, the project folder used is default.