hi
I have a problem
I mobe from jQuery mobile to onsen
but when stat tutorial in fist step init event never fired.
I installed onsen from npm and add script limes after cordova script tag in index.html.
but except other things those ok , but init event never ever fired.
ui is good,css is just fine and shown.but after ons.ready,deviceready,and even ons.alert, init in addeventlistener not fired.I tested in chrome mobile emulator,firefox firebug,android avd emulator and apk on real some devices.but results is same.init event not fire.if I forgot Something nothing works not just init event of a page.
I copy ,paste codes from tutorial page.please put one html file with all js,css in it with pure JavaScript to me to understand where is wrong in my own code.
I using
document.addEventListener('init', function(event) {
var page = event.target;
if (page.matches('#helloworld-page')) {
page.querySelector('ons-toolbar .center').innerHTML = 'My app';
page.querySelector('ons-button').onclick = function() {
ons.notification.alert('Hello world!');
};
}
});
as in tutorial page. in deviceready event in cordova rules