Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. Vincent Bastos
    3. Topics
    V
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by Vincent Bastos

    • V

      Unsolved Angularjs bind not working
      Onsen UI • • Vincent Bastos

      8
      0
      Votes
      8
      Posts
      8241
      Views

      V

      Sorry about leaving this for so long, but I made the mistake of removing the following lines of code to bootstrap my app, it worked after I used the method below again. var bootstrapCallback = function() { // retrieve the DOM element that had the ng-app attribute var bodyElm = document.getElementById('ngApp'); angular.bootstrap(bodyElm, ["trytonSSApp"]); } if (navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|IEMobile)/)) { document.addEventListener("deviceready", bootstrapCallback, false); } else { bootstrapCallback(); }
    • V

      Unsolved How to reload page on switching tabs in ons-tabbar
      Onsen UI • • Vincent Bastos

      10
      0
      Votes
      10
      Posts
      10363
      Views

      @Vincent-Bastos Well, now the pages are always persistent, they are not removed and created again. We noticed this just made loading tabs way slower, so we made them persistent. Your Angular controller will be only run once at the beginning of the app. That’s why we recommended to put the code in show event instead, since it will be run every time you activate the tab (just like before). Using loadPage for this would just be a dirty patch, but if you are ok with that you can read the docs here.