Sunday, 11 August 2013

Export Angular JQLite as $/jQuery

Export Angular JQLite as $/jQuery

I occasionally find plugins that try to detect if JQuery is present, or
might have 1-2 lines of code that uses $. I am wondering if it's possible
to make Angular's JQLite available outside of angular apps somehow? My
first tries of simply seeing if JQLite was available did not work.
Basically I would like either the variable $ or jQuery to be available
anywhere (or at least within my ng-app area) to see if it contains enough
functionality to let these jquery plugins/code work.
Here's the source
https://github.com/angular/angular.js/blob/master/src/jqLite.js

No comments:

Post a Comment