You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
Hi
So, the question is just that, is there any event triggered on document ready? Kind of similar to angular angular.element(document).ready(...) or $document.ready(...). I've checked AureliaStarted event from the repo, but I guess it is triggered just when the Aurelia resources (not the application resources) are loaded.
Cheers!
The text was updated successfully, but these errors were encountered:
import$from'jquery';exportfunctionconfigure(aurelia){aurelia.use.standardConfiguration().developmentLogging();aurelia.start().then(a=>a.setRoot('app',document.body)).then(a=>{// here the DOM is ready$(document).ready(()=>{// some initialization});});}
There's no need to every use the jQuery document ready. Once the configure method is called, the document is already ready. If you need to know, on a per component basis, when it's attached to the DOM, you can use the attached callback.
Hi
So, the question is just that, is there any event triggered on document ready? Kind of similar to angular
angular.element(document).ready(...)
or$document.ready(...)
. I've checkedAureliaStarted
event from the repo, but I guess it is triggered just when the Aurelia resources (not the application resources) are loaded.Cheers!
The text was updated successfully, but these errors were encountered: