Skip to content

christianacca/angular-cc-autorefresh

Repository files navigation

angular-cc-autorefresh

Build Status devDependency Status

AngularJS directives to schedule work that refreshes $scope.

Demo and docs

To see directives in action visit the demo.

Alternatively, browse the API reference

Installation

1. Reference dependencies

  • AngularJS
    • eg: <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
  • Bootstrap's CSS
    • eg: <link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"/>

2. Reference angular-cc-autorefresh

  • Either:
    • Download the latest cc-autorefresh-tpls-[version].min.js script file from here; OR
    • Install with bower. eg: bower install angular-cc-autorefresh
  • Add the reference (remember to replace 'your/path' and '[version]'). eg:
    • <script src="your/path/cc-autorefresh-tpls-[version].min.js"></script>

3. Add dependencies on the cc.autorefresh AngularJS module

Eg:

angular.module('myModule', ['cc-autorefresh']);