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/
It can work like that:
var myElement = angular.element( document.querySelector( '#some-id' ) );
You wrap the Document.querySelector() native Javascript call into the angular.element() call. So you always get the element in a jqLite or jQuery object, depending whether or not jQuery is available/loaded.
Official documentation for angular.element:
If jQuery is available,
angular.elementis an alias for thejQueryfunction. If jQuery is not available,angular.elementdelegates to Angulars built-in subset ofjQuery, that called "jQuery lite" or jqLite.All element references in
Angularare always wrapped with jQuery orjqLite(such as the element argument in a directives compile or link function). They are never rawDOMreferences.
In case you do wonder why to use document.querySelector(), please read this answer.