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

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

    If someone using gulp, it show an error if we use document.getElementById() and it suggest to use $document.getElementById() but it doesn't work.

    Use -

    $document[0].getElementById('id')
    

提交回复
热议问题