How do I capture the on page init event for the index page?

I have found a lot of documentation for Framework7 v1 on how to capture the onPageInit event for the index page, but it seems things have changed in v3, which is what I am using (the current version as of September 2018).

I can’t capture this event. I just need to capture the event for when the initial app loads. How do I do this for v3?

I may have just answered my own question through much trial and error. I need to attach to the 'init' event for the app instance, while setting init to false in the app settings:

var myApp = new Framework7({
    init: false

myApp.on('init', function(e) {
    alert('app init event fired');

1 Like