-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ng-jq only works on html tag #11779
Comments
I'm guessing this is your issue. Compare this jsbin (not working) to this jsbin (working). The difference is where angular is being loaded. I'm guessing that you're placing the So your solution is to make sure that the element with Perhaps I'll make a PR to update the docs to point out this issue. Good luck! |
change docs for ngJq so it mentions that the placement of the directive is important with regards to the angular script. Closes angular#11779
That's right. Unfortunately this info needs to be known before the document is ready, so it needs to be an early element |
Ah, and another alternative would be to simply place the jQuery script AFTER the angular script. You wouldn't need the |
Ha, yes that makes sense, was somehow thinking it inits after domready, but guess it need to run earlier for all the gimmicks .. @kentcdodds I think there was some talk why loading jQuery after angularJS doesnt work in all cases if (!jQuery) {...} else {jQlite} issue relates to #11647 ( just found that now) thx! |
change docs for ngJq so it mentions that the placement of the directive is important with regards to the angular script. Closes angular#11779 Closes angular#11780
I tried the new tag 'ng-jq' to disable trying to use my very old jQuery lib
In my case I tried to improve a small module in a very old Joomla page so changing the layout template is not really a nice way to do it - would be better if I could use ng-jq on the app tag too)
AT least the description stated it not madatory to do it in the tag
tried with: 1.4.0-rc.1
The text was updated successfully, but these errors were encountered: