angular.element vs document.getElementById or jQuery selector with spin (busy) control

后端 未结 10 2450
感动是毒
感动是毒 2020-11-28 02:18

I\'m using the \"Angularised\" version of the Spin control, as documented here: http://blog.xvitcoder.com/adding-a-weel-progress-indicator-to-your-angularjs-application/

10条回答
  •  借酒劲吻你
    2020-11-28 02:23

    This worked for me well.

    angular.forEach(element.find('div'), function(node)
    {
      if(node.id == 'someid'){
        //do something
      }
      if(node.className == 'someclass'){
        //do something
      }
    });
    

提交回复
热议问题