i´m trying to initialize onsenui after some js files are loaded, but then ons.bootstrap() is causing the errors. when i´m using a sample from onsenui everything is working quite good, but in my project, i have to load the js files dynamically and synchronously and then ons.bootstrap(); give me the this error "'AppController' is not a function, got undefined"
if same js libs in same order are declared in html doc with script tags everything is working good.
i´ve found that if the scripts are loading through normal script tags and then i´m waiting till html document is fully loaded and then call ons.bootstrap() through developer tools i got same error.
so the question is how to initlaize onsen ui after document is loaded? Hope someone can help, I´m not very familiar with angularJS/OnsenUi... first project
thanks
I have create 2 samples to demonstrate my problem.
- working like onsenui samples.
jbBgmdhttp://codepen.io/anon/pen/jbBgmd - not working like in my case.
BoWXdPhttp://codepen.io/anon/pen/BoWXdP
any idea?