Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load Kiwapp without any callback #7

Closed
dhoko opened this issue May 27, 2014 · 0 comments
Closed

Load Kiwapp without any callback #7

dhoko opened this issue May 27, 2014 · 0 comments

Comments

@dhoko
Copy link
Contributor

dhoko commented May 27, 2014

  • Inside kiwapp.js : config = {};

In my app:

    <script src="js/vendor.min.js"></script>
    <script src="/config/kiwapp_config.js"></script>
    <script src="js/app.js"></script>

Then

console.debug("[helpers@run] Kiwapp is loaded");
Kiwapp.rotate(helpersConfig.orientation || 'landscape');
Kiwapp.session().start();

Bug

With angular, because as you load async the configuration, the driver is not ready when we call it from a service or controller. We need to wait.

So with a sync loading inside the template, it works without any problems,

@dhoko dhoko added bug labels May 27, 2014
dhoko pushed a commit that referenced this issue Jun 17, 2014
evifere added a commit that referenced this issue Jun 18, 2014
Fix #7 - Allow kiwapp to be loaded by script tag
@evifere evifere closed this as completed Jun 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants