Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

Can't connect to monaca backend

  • Hello,

    I would like to register users by using backend monaca. I follow the instruction by configuring iOS
    but it still doesn’t work. This is my code. Thank you in advance

    var module = angular.module('my-app', ['onsen']);
    module.controller('RegisterController', function()
                        this.register = function()
                      , this.password)
                                        console.log('Registration is success!');
                                        console.log('Registration failed!');
    <ons-page ng-controller="RegisterController as page" id="register.html">
            <div class="center">Input</div>
        <div style="text-align: center; margin-top: 30px;">
                <ons-input id="username" modifier="underbar" placeholder="Username" float ng-model="page.username"></ons-input>
                <ons-input id="password" modifier="underbar" type="password" placeholder="Password" float ng-model="page.password"></ons-input>
            <p style="margin-top: 30px;">
                <ons-button ng-click="page.register()">Register</ons-button>

  • @iriekun Are you using the Monaca debugger or just the preview tool? Also, do you get an error? Based on your response, I will make an example from there if that doesn’t solve it.

  • @munsterlander yes i used both monaca debugger and preview tool. There is no error. It simply didn’t save the username and password to database after I click on register button. Please help! thank you in advance