AngularJS has functions which override jquery functions. For e.g., wrap() function is there in angular.js and in jquery-1.10.2 also but I want to call the wrap() function of angular.js so how should I call it?
For now, when I try to call it in my directive like this, it calls the jquery's wrap() function:
element.wrap(outerDiv);
The need of this is, wrap() function doesn't work properly if it's called from jquery. Though it wraps the elements, it doesn't give angular environment, e.g. {{ name }} does not print name property. When I removed jquery file, wrap() function of angular.js was called and it worked perfectly fine.
wrap()function but then came to know that if I remove jquery or if somehow the function from angular.js is called instead of jquery, it works well and provides angular environment.