angular-jquery

0.2.2 • Public • Published

angular-jquery

🚧 This module is deprecated and not maintained anymore 🚧

jQuery-like extensions for AngularJS embedded jQLite

Getting Started

  • Install with bower, npm install angular-jquery --save

  • Or download the production or the development version.

In your app.js:

import 'angular-jquery';

angular.module('myApp', ['mgcrea.jquery'])

Documentation

Available components:

  • jQuery: selector (wrapping document.querySelectorAll)

  • dimensions: .offset(), .height(), .width()

  • debounce: debounce() function

Examples

  .directive('myDirective', function(jQuery) {

    return {
      restrict: 'EAC',
      link: function postLink(scope, iElement, iAttrs) {

        var myElements = jQuery('.container > .element');
        angular.each(myElements, function(el) {
          console.warn(el.offset(), el.width())
        })

      }
    };

  });

Readme

Keywords

Package Sidebar

Install

npm i angular-jquery

Weekly Downloads

0

Version

0.2.2

License

none

Unpacked Size

22 kB

Total Files

20

Last publish

Collaborators

  • ciel69