I upgraded from .20 to .21 and everything seemed ok in Chrome.
Then I ran my app on my phone and ng-click seems to have been broken (probably the touch aspects of it). I downgraded ionic.js and ionic-angular.js and it started working again.
I then upgraded only ionic.js and it continued to work. Then ionic-angular.js and it stopped again.
However when I added overflow-scroll="true" clicks started working again…rather peculiar.
Are you noticing that ng-click is firing twice? Not sure if this is related to your problem (I’m seeing this on Android 4.3), but it’s occuring on certain (not all) ng-click directives I have in my app. I’m on 0.9.21 and works fine in Chrome.
@max I think it’s either not firing on touch or being intercepted before it hits the function on my controller. I have a relatively simple setup:
// index.html
body
nav-bar
nav-view
// page.html
view
content ng-hide="loading"
div ng-repeat item in items track by $index
div ng-click="openItem(item)"
Click either works (ionic-angular.js v.20) or doesn’t (ionic-angular.js v.21). And to confuse matters if I add overflow-scroll to the content directive it starts to work again…
I noticed it first on the emulator but its the same on my actual phone. I quickly added an alert inside the controller function openItem and it gets hit and performs its job when on v.20.
On v.21 however it never reaches the function.
Google Chrome - works
iPhone 4S iOS7 - doesn’t work
iPhone/iPad emulators - doesn’t work
<list>
<item ng-repeat="e in currentEvents" ng-click="selectEvent(e.id)">
{{e.name}}
</item>
</list>
Works great in Chrome on my laptop, but wrapped in PhoneGap 3.3 and put it on my iOS7 iPod Touch and my iOS6 iPad Mini and the click handler does not run for either of them.
function onTap(e) {
// wire this up to Ionic's tap/click simulation
ionic.clickElement(e.target, e);
}
Uncaught TypeError: Object #<Object> has no method 'clickElement'
I looked in ionic.js and there is no clickElement function.