javascript - Phonegap button onclick on Ios -


I have phonegap in Android devices, and their work is fine.

There is a problem with firing javascript function on the iOS version click button. I use the angulars:

  & lt; Button class = "grip" ng-click = "recordound ()" & gt; Grabar & lt; / Button & gt;  

This button does not work in iOS version but works in Android.

Without angular (onclick = ...), there is a similar problem ..

Thanks!

PD: I use this example to use an example:

   

And its work is fine! -_- But I think that's not the best way. It's better with the button.

PD2: Okay! I resolve using this problem:

  & lt; Button class = "grab" onclick = "recordsass ();" & Gt; Grabar & lt; / Button & gt;  

But I do not understand why not ng-click.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -