2

In the process of removing JQuery dependency from our Angular project. Most of the work to remove JQuery has been done.

Currently I'm just doing a global find on '$.' to identify those sections of code that still utilize JQuery.

Is there something else I should be searching for?

3
  • 9
    jQuery....... Commented Oct 16, 2015 at 17:15
  • 1
    jQuery... some people don't use the alias $ Commented Oct 16, 2015 at 17:15
  • Don't jslint/jshint help you? Commented Oct 16, 2015 at 17:17

1 Answer 1

2

Thanks to @tushar and @taxicala for suggesting I also search for jQuery (in case the alias is not used).

In addition to searching for '$.' and 'jQuery', we've also found reliance on jQuery from element in our directives.

From the Angular element docs: "If jQuery is available, angular.element is an alias for the jQuery function. If jQuery is not available, angular.element delegates to Angular's built-in subset of jQuery, called "jQuery lite" or "jqLite.”"

So to summarize...

  1. search for $.
  2. search for jQuery
  3. search for uses of element that rely on jQuery and not just jqlite

Thanks again to those who commented!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.