Closed graunked closed 10 years ago
It's possible, you just have to use angular functions (with jquery lite). Not all jquery functions are available but the main ones are, and you can use vanilla js for the rest. I'll take a look.
Looked at this briefly a little while back. Per https://docs.angularjs.org/api/ng/function/angular.element, one of jqLite's limitations is find() - Limited to lookups by tag name
. As I recall, that was the stopping block--we use find
a handful of places throughout the code. Certainly fixable, but I figured low enough priority for now-- @ocombe , if you can extricate the jQuery dependency, that'd be awesome (but again, maybe not top priority at the moment.) One key place to watch out for is the animation api, which supports assigning animations to modifiers by selectors.
We can use window.document.querySelector() instead of find()
Yes, it won't work on IE7 but neither do angular nor famous anyway.
Ok I have a version jquery-underscore-free ready, but I'll wait for you to accept my other PR before :)
See PR #35 !
woot!
Creating a fa-app without jQuery included throws
ReferenceError: $ is not defined
at line 20 of fa-app. Can we do without jQuery?