Hi everyone,
I just tried installing fw7 with cli. And I think the performance is very good compared to what I used before. Only I’m still somewhat confused with the structure and use of the module. Which is better, get request on routes.js or on pages? I tried getting a request on routes.js like this:
var routes = [
{
path: '/',
async(routeTo, routeFrom, resolve, reject) {
this.app.request.json('url-api', function (data) {
resolve(
{
component: Home,
},
{
context: {
data1: data.response,
}
}
)
});
this.app.request.json('url-api', function (data) {
resolve(
{
component: Home,
},
{
context: {
data2: data.response,
}
}
)
});
},
},
Is it true or is there something more efficient?