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

后端 未结 10 2467
感动是毒
感动是毒 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:35

    Improvement to kaiser's answer:

    var myEl = $document.find('#some-id');
    

    Don't forget to inject $document into your directive

提交回复
热议问题