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

App broken rc18 -> #1588

Closed
vjoomens opened this issue Sep 16, 2016 · 7 comments
Closed

App broken rc18 -> #1588

vjoomens opened this issue Sep 16, 2016 · 7 comments

Comments

@vjoomens
Copy link

[](Github issues should be used only for bugs and feature requests. For questions please visit https://stackoverflow.com/tags/onsen-ui or https://community.onsen.io. For bugs please use the following template.)

Environment
Onsen 2 rc 17
Angular 1.5.8
Any platform

Encountered problem
After updating to onsen ui 2.0.0-rc18 or later my application is broken and shows the following error. rc17 works fine. Please help, because I would like to update to prod version 2.

2016-09-16_1138

@argelius
Copy link
Contributor

argelius commented Sep 16, 2016

@vjoomens Does this happen in split view or sliding menu?

Can you provide a simple example that reproduces this?

@vjoomens
Copy link
Author

vjoomens commented Sep 16, 2016

This happens with the sliding menu. Here's an example.

<ons-navigator animation="slide" var="nav" id="navigator">
    <ons-page>
        <ons-sliding-menu main-page="profiles.html" menu-page="menu.html" side="left" max-slide-distance="250px"
                          var="menu" id="mainMenu">
        </ons-sliding-menu>
    </ons-page>
</ons-navigator>

<ons-template id="menu.html">
    <ons-page class="regular-background">
        <ons-toolbar modifier="main-toolbar"></ons-toolbar>
        <ons-list class="menu-list">
            <ons-list-item modifier="chevron" onclick="menu.setMainPage('profiles.html', {closeMenu: true})">
                {{ 'common.messages' | i18n }}
            </ons-list-item>
        </ons-list>
    </ons-page>
</ons-template>

<ons-template id="profiles.html">
    <ons-page ng-controller="ProfilesController" class="white-background">

    </ons-page>
</ons-template>

head:

    <link rel="stylesheet" href="lib/OnsenUI/css/onsenui.css" type="text/css" media="all"/>
    <link rel="stylesheet" href="lib/OnsenUI/css/onsen-css-components.css" type="text/css" media="all"/>

    <script src="lib/angular/angular.min.js"></script>
    <script src="lib/OnsenUI/js/onsenui.js"></script>
    <script src="lib/OnsenUI/js/angular-onsenui.js"></script>

    <script src="js/angular-app-test.js"></script>

angular-test-app.js:

var app = angular.module('whatznew', ['onsen']);

app.controller('ProfilesController', ['$scope', function ($scope) {

}]);


function loadTheApp() {
    // Boot AngularJS
    try {
        angular.bootstrap(document, ['whatznew']);
        //ons.disableAutoStatusBarFill();
    } catch (e) {
        console.error('Error starting app', e);
    }
}

// Listen to device ready
angular.element(document).ready(function () {
    if (window.cordova) {
        document.addEventListener('deviceready', loadTheApp, false);
    } else {
        loadTheApp();
    }
});

@argelius
Copy link
Contributor

@vjoomens I think I figured out what's happening. Will fix later. On my phone now so I can't write code

@vjoomens
Copy link
Author

@argelius, did you find anything yet?

@argelius
Copy link
Contributor

@vjoomens Sorry for the delay. I had a high fever so I was out of action for a few days. This has been resolved now and should work in the next version.

@vjoomens
Copy link
Author

Thank you!

@vjoomens
Copy link
Author

@argelius I just updated my project to use onsen ui 2.0.1, but it's still not working with RC18 or higher.
2016-10-14_1416

@lock lock bot added the outdated label May 17, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants