O'Reilly logo

AngularJS by Example by Chandermani

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

AngularJS jQuery integration

If you are a web stack developer, you know jQuery is omnipresent. jQuery has a vibrant community and plethora of plugins that can be readily used in any JavaScript-based implementation.

Angular is in a different league! In AngularJS, we don't directly work on DOM. The only place DOM manipulations are acceptable is within directives. In fact, as we saw earlier, the parameter element to the directive compile and link function is a jQuery/jqLite object that can be manipulated as the standard jQuery element.

Anyone from a jQuery background will have two major challenges when trying to adopt AngularJS:

  • How to think and design the Angular way?
  • How to integrate something written in jQuery into Angular?

The first challenge is a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required