angular.element returning jQuery or jqLite
jQuery is not loaded here, so it will return the relevant error in a console as jqLite does not support CSS-like selectors
by Adrien Be
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<div ng-app="MyApp">
<div ng-controller="MyCtrl">
<div id="msg"></div>
</div>
</div>
JavaScript
angular.module('MyApp', [])
.controller('MyCtrl', ['$document', function($document) {
$document.ready(function () {
angular.element('#msg');
});
}]);