javascript - How to include and use jQuery in Angular properly? -
i building ionic application android. have added jquery index.html:
<script src="lib/jquery/jquery-1.11.3.min.js"></script> <script src="lib/ionic/js/ionic.bundle.js"></script>
then in controller function did this:
.controller('bluetoothctrl', function($scope, $cordovabluetoothserial, $timeout, $ionicmodal) { var $jq = jquery.noconflict(); $scope.dosomething = function(){ $jq.grep(...); }; .... });
however when load application on android, below error:
failed load resource: net::err_file_not_found
Comments
Post a Comment