Preloader on ajax start

$$(document).on(‘ajaxStart’, function (e) {
myApp.showIndicator();
});

$$(document).on(‘ajaxComplete’, function (e) {
myApp.hideIndicator();
});

How to write this in v2?

myApp.preloader.show();

myApp.preloader.hide();

how can i accomplish the same using vue js ?

Is there a way to add a message inside the preloader? I tried this…no luck app.preloader.show(‘Connecting…’);

No, only app.dialog.preloader can be used with message

Thank you for the reply but I am not sure I understand, where is app.dialog.preloader in the v2 doc please?

thanks

Thanks just found it