I recently upgraded to v1.0.0-beta-6 and am now experiencing an issue with ng-click. This is my code, which I have drastically shortened to prove my point, but it’s still not working. Clicking on the div will not call myCtrl.navigate at all in iOS or Android. Note however, this DOES work in a browser, just not in any mobile environment.
You shouldn’t specify the controller like ng-click=“myCtrl.navigate()” … use just ng-click=“navigate()”, and I’m sorry but don’t use a Controller specified like “MyCtrl as myCtrl” in AngularJS, input only the name of the controller.
This is valid Angular syntax. I prefer the ‘Controller as controller’ syntax rather than putting properties and functions on the $scope. It makes markup so much easier to understand.
Plus, I’m willing to bet that’s not the reason ng-click isn’t working for me.
Interesting, but even putting the function on $scope doesn’t fix it in the iOS emulator or Android emulator for me. navigate() simply isn’t invoked at all.
I am also having this type of issue in beta 7. The only hack I have found to fix this is to add overflow-scroll=true to the ion-content tag. At least try that and see if it helps. It helped me but I don’t consider that as a permanent solution because that effectively means I am not using ionics scroll logic i am using the browsers.
I am definitely experiencing this problem as well. None of the latest betas fixed this issue. Tried it on a Samsung Galaxy S2 with 4.1.2 and a Nexus 7 (2013) with 4.4.
It works fine in the simulator and browser though.