Routes + Page + AJAX

Hello,

I would like to load a page dynamically by “routes”. But I do not want to display the loading icon while waiting for the request response, so I did not use “async”.

{
path: ‘/ profile / user /: userId /’,
componentUrl: ‘./pages/profile.html’,
},

I wish that when touching the menu, go straight to the componentUrl and that it realizes the request by AJAX, inside the event “pageMounted”. Is it possible for “pages / profile.html” to do ajax and refresh page information?

Thanks

It is possible to do Ajax request, better in mounted or pageInit component hook or page event, but if you update component data it won’t be rerendered automatically, you need to update it manually