I have a setup for a test app which includes require.js, jQuery, jQueryMobile (jqm), knockout and sammy
require.js loads in jqm, knockout and sammy
on the app ma
Looking at your demo, I can suggest a few things to try.
main.js
remove the dependency on jqm-config
and add it to app.js
. That way, you will always be guaranteed to have set up your jquery mobile configuration before anything in app.js
is run.ko.applyBindings()
call is wrapped in a .ready()
construct. Even with all those items fixed, I'm not sure that the way you're going about things will work. You may be better off loading all the HTML up front and binding all the pages to one parent viewmodel with subviewmodels.