Using Angular Js with jQuery issue

I am trying to embed an angular application into my existing application that makes extensive use of jquery. The moment I call the bootstrap function, for example,

  angular.bootstrap(document.getElementById('app-grid'),['grid']);

I get a weird error:

Error: $rootElement.on is not a function $LocationProvider/this.$get<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js:9257
........

If I uninstall the angular jquery application load. Please let me know if there is work around

jquery: 1.5.1
angularjs:1.2.13
+3
source share
2 answers

This is a really old version jQuerythat you are using that does not provide a function onfor wrapped items. If you need to continue to use it for obsolete reasons, download it after angularjs so that angular can use its internal implementation jqLite.

+7
source

jQuery Angular.js , , Angular.js , , jQuery .

Do Dont


jQuery AngularJS

, jQuery X, Y Z, AngularJS . , , , AngularJS jQuery, , , , " Angular".

jQuery 150 200 , AngularJS $applys, ; ! , jQuery AngularJS , .

, : " AngularJS"; , ; , jQuery. jQuery , AngularJS.


: " AngularJS" jQuery?

:)

+7
source

All Articles