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

bindJQuery is called too early #3716

Closed
4vanger opened this issue Aug 23, 2013 · 2 comments
Closed

bindJQuery is called too early #3716

4vanger opened this issue Aug 23, 2013 · 2 comments

Comments

@4vanger
Copy link

4vanger commented Aug 23, 2013

When jQuery is loaded after angular.js, JQLite methods like inheritedData is not added to jquery elements. Comment says that "try to bind to jquery now so that one can write angular.element().read() but we will rebind on bootstrap again." but actually it is never called again.
http://plnkr.co/edit/HWfGszpeM0rMgnXg36Gm

@Narretz Narretz added this to the Backlog milestone Jul 1, 2014
@mgol
Copy link
Member

mgol commented Aug 1, 2014

IMO it'd be best to address it via changing the docs.

@btford btford removed the gh: issue label Aug 20, 2014
@mgol mgol self-assigned this Apr 27, 2015
@mgol mgol modified the milestones: 1.4.0-rc.2, Backlog Apr 27, 2015
@petebacondarwin
Copy link
Contributor

Perhaps we need to change the line in https://docs.angularjs.org/api/ng/function/angular.element which says:

To use jQuery, simply load it before DOMContentLoaded event fired.

to something like:

To use jQuery, simply ensure it is loaded before the angular.js file.

netman92 pushed a commit to netman92/angular.js that referenced this issue Aug 8, 2015
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