Ich versuche "ng-mouseover" -Direktive auf Bild zu verwenden, die "ng-if" haben und es funktioniert nicht, aber wenn ich "ng-show" verwende Richtlinie funktioniert es, kann mir jeder sagen warum? Oder ist es ein AngularJS-Problem?ng-mouseover funktioniert nicht mit ng-if
In der AngularJS Dokumentation kann ich nichts darüber gelesen: https://docs.angularjs.org/api/ng/directive/ngMouseover
ng-show
<button ng-show="true" ng-mouseover="countOne = countOne + 1" ng-init="countOne=0">
Increment (when mouse is over)
</button>
Count: {{countOne}}
ng-wenn
<button ng-if="true" ng-mouseover="countTwo = countTwo + 1" ng-init="countTwo=0">
Increment (when mouse is over)
</button>
Count: {{countTwo}}
Fiddle: http://plnkr.co/edit/Wb6bjyJdHj5qoH7fxGFJ?p=info