Skip to content Skip to sidebar Skip to footer

Ionic: ReferenceError: $ Is Not Defined

I'm getting the error ReferenceError: $ is not defined on my ionic application. I'm trying to open links in the systems browser from my json file. Here's the code: $timeout(fun

Solution 1:

Angular will use jqLite. However you can include jQuery.js before Angular.js and make Angular replace jqLite by jQuery. $ will be difined.

Include jQuery before including AngularJS as,

<!-- Add jQuery from -->
<script type="text/javascript" src="jquery.js"></script>

<!-- And then AngularJS -->
<script type="text/javascript" src="angularjs.js"></script>

Post a Comment for "Ionic: ReferenceError: $ Is Not Defined"