Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    ng-watchcollection-polyfillpublic

    Angular WatchCollection Polyfill

    Build Status Coverage Status npm

    A module that backports $watchCollection to pre 1.2 AngularJS.

    Requirements

    • AngularJS <= 1.0.x (will not run or break later versions)

    Usage

    Load the script file: ng-watchcollection-polyfill.js in your application:

    <script type="text/javascript" src="modules/ng-watchcollection-polyfill.js"></script>

    Add the ng.watchcollection.polyfill module as a dependency to your application module:

    var myAppModule = angular.module('MyApp', ['ng.watchcollection.polyfill'])

    Inject the ngWatchCollectionPolyfillService service to a controller of your app (preferably the outermost):

    myapp.controller('demoController', function ($scope, ngWatchCollectionPolyfillService) {

    You are ready. Happy collection watching.

    install

    npm i ng-watchcollection-polyfill

    Downloadsweekly downloads

    1

    version

    0.2.2

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar