Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Supported jQuery version #1771

Closed
0x-r4bbit opened this issue Jan 8, 2013 · 5 comments
Closed

Supported jQuery version #1771

0x-r4bbit opened this issue Jan 8, 2013 · 5 comments

Comments

@0x-r4bbit
Copy link
Contributor

If found this issue and wonder if there's a version for jQuery specified with which angular is compatible.

I recently stumbled upon the fact, that at least angular 1.0.3 isn't fully compatible with jQuery 1.4.1, since directives use $.prop() which was introduced in jQuery 1.6 (http://api.jquery.com/prop/).

@pkozlowski-opensource
Copy link
Member

@PascalPrecht FYI AngularJS is continuously-tested with the following version of jQuery: https://github.com/angular/angular.js/blob/master/lib/jquery/version.txt

Currently it is 1.8.2.

@0x-r4bbit
Copy link
Contributor Author

Yeap, I know, and that's why we should push this one here forward. I'm currently not able to update the jQuery version in my project environment :(. I've already asked on google groups right here, since I'm thinking about of working on a pull request to make this feature happen.

@btford btford closed this as completed Aug 24, 2013
@btford
Copy link
Contributor

btford commented Aug 24, 2013

As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months.

Please try the newest versions of Angular (1.0.8 and 1.2.0-rc.1), and if the issue persists, comment below so we can discuss it.

Thanks!

@fitterman
Copy link

The link above, https://github.com/angular/angular.js/blob/master/lib/jquery/version.txt 404's. The FAQ says nothing about 1.7 is tested. What's the definitive answer?

@kegsay
Copy link

kegsay commented Feb 19, 2015

I'm guessing you should probably go off https://github.com/angular/angular.js/blob/master/bower.json but it really should be made much more clear to developers. Littered throughout the code are things like:

./src/Angular.js:1471:  // Angular 1.3+ technically requires at least jQuery 2.1+ but it may work with older
./src/Angular.js:1472:  // versions. It will not work for sure with jQuery <1.7, though.

./docs/content/misc/faq.ngdoc:85:Angular 1.3 only supports jQuery 2.1 or above. jQuery 1.7 and newer might work correctly with Angular

This should ideally be enforced by Angular by checking the version of jQuery at runtime, and logging an error so developers are made aware that they are using a version of jQuery that is unsupported:

console.log(jQuery.fn.jquery);  // get jquery version

The consequences of using an outdated version of jQuery aren't clear: often things will seemingly work just fine, but the docs are very clear about "only supporting" a certain version and above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants