Suppose a jasmine test exposing this code in the beforeEach block:
//....
element = $compile('<input class="form-control" class="email" name="email" id="email" type="email" ng-model="user.email" />')($rootScope);
$rootScope.$digest();
//.....
In some test, I put a simple:
console.log($('#email').name);
expecting thus the output of the value: email.
However, I get an undefined.
So my question is: Is jquery compatible by default (without jasmine-jquery plugin or anything else)? Of course, in my karma configuration, jquery is loaded before angularjs.
Of course, passing by the traditional element.find(...) works well (although does only work with tagnames) , but I would like to use Jquery selector instead.