search

Home  >  Q&A  >  body text

angular.js - angular-animation and causing afterimage when switching with ng-switch

When developing a seat selection command, because we need to switch between three states, we used the ng-switch
command template

<span class="myCheck" ng-click="toggleIcon()" ng-switch="myCheck">
    <i ng-switch-when="2" class="icon-stop text-red"></i><!--以被选择-->
    <i ng-switch-when="1" class="icon-stop text-green"></i><!--选择-->
    <i ng-switch-when="0" class="icon-null"></i><!--未选择-->
</span>

After adding angular-animation to the project, afterimages will appear when switching the seat selection state

Have any students encountered this pitfall and ask for a solution?

伊谢尔伦伊谢尔伦2795 days ago604

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-05-15 17:03:20

    . . . The problem of afterimages is caused by ng-animation. . .

    reply
    0
  • Cancelreply