Skip to content

Commit

Permalink
Renamed poller module to ngPoller.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmaguo committed Mar 19, 2014
1 parent dad7c7f commit 1e5d937
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Add a `<script>` to your `index.html`:
## Basic Usage
```javascript
// Inject angular poller service.
var myModule = angular.module('myApp', ['poller']);
var myModule = angular.module('myApp', ['ngPoller']);

myModule.controller('myController', function($scope, $resource, poller) {

Expand All @@ -51,7 +51,7 @@ myModule.controller('myController', function($scope, $resource, poller) {
### Customization
```javascript
// Inject angular poller service.
var myModule = angular.module('myApp', ['poller']);
var myModule = angular.module('myApp', ['ngPoller']);

myModule.controller('myController', function($scope, $resource, poller) {

Expand Down Expand Up @@ -82,7 +82,7 @@ myModule.controller('myController', function($scope, $resource, poller) {
### Multiple Resources
```javascript
// Inject angular poller service.
var myModule = angular.module('myApp', ['poller']);
var myModule = angular.module('myApp', ['ngPoller']);

myModule.controller('myController', function($scope, $resource, poller) {

Expand All @@ -109,7 +109,7 @@ myModule.controller('myController', function($scope, $resource, poller) {
### Multiple Controllers
```javascript
// Inject angular poller service.
var myModule = angular.module('myApp', ['poller']);
var myModule = angular.module('myApp', ['ngPoller']);

// Create resource factory.
myModule.factory('myResource', function ($resource) {
Expand Down
2 changes: 1 addition & 1 deletion angular-poller.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

'use strict';

angular.module('poller', [])
angular.module('ngPoller', [])

/*
* Usage:
Expand Down
4 changes: 2 additions & 2 deletions angular-poller.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/poller-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('Poller model:', function () {

beforeEach(function () {

module('poller', 'ngResource');
module('ngPoller', 'ngResource');

inject(function (_$resource_, _$timeout_, _$httpBackend_, _poller_) {
$resource = _$resource_;
Expand Down
2 changes: 1 addition & 1 deletion test/poller-registry-get.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('Poller registry:', function () {

beforeEach(function () {

module('poller', 'ngResource');
module('ngPoller', 'ngResource');

inject(function (_$resource_, _poller_) {
$resource = _$resource_;
Expand Down
2 changes: 1 addition & 1 deletion test/poller-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('Poller registry:', function () {

beforeEach(function () {

module('poller', 'ngResource');
module('ngPoller', 'ngResource');

inject(function (_$resource_, _poller_) {
$resource = _$resource_;
Expand Down

0 comments on commit 1e5d937

Please sign in to comment.