Hi
I tend to use pages and load via AJAX from my main screen.
My routes looks like this:
{
path: ‘/about/’,
url: ‘./about.html’,
name: ‘about’,
},
// Buttons page
{
path: ‘/buttons/’,
componentUrl: ‘./buttons.html’,
name: ‘buttons’,
}, …
However, the about page, (loaded by url)
I can’t run any Javascript in a block
The Buttons page (loaded by componentUrl)
I can run code in
- Is there any difference in performance using $$(document)… approach as opposed to using ES6 style methods in return object? Which is preferred?
- If I want to run JS code, and add it to a specific page, without adding it to the root app init, do I have to use and componentUrl… will it not work in normal pages?
thanks