Angularjs - 如何执行一次 ng-mouseenter

Angularjs - How to execute ng-mouseenter once

我有一个问题,如何只执行一次ng-mouseenterng-mousehover

http://plnkr.co/edit/CIdFhCJR8SOatjoDgd8m?p=preview

如何保持“1”的计数?

这样使用

<button ng-mouseover="(count == 0) ? count = count + 1 : return" ng-init="count=0">

IF count == 0 然后执行 count = count + 1 ELSE 只是 return.

DEMO PLUNKER