I want angularjs to use jQuery instead of jQLite by default. Is it possible? So that in directive link function:
link: function (scope, element, attrs, ngModel) {
element
must be jQuery object. Now i'm converting it manually and i don't like it:
element = $(element[0]);
You have to add jquery script tag before angularjs, this way angularjs will automatically replace jqLite by jQuery.
<!-- Add jQuery -->
<script type="text/javascript" src="jquery.js"></script>
<!-- Then, add angular -->
<script type="text/javascript" src="angularjs.js"></script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With