Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 8ec3f4b

Browse files
sethbattinNarretz
authored andcommitted
docs($resourceProvider): include '$' in di in example
The injection argument is missing the '$' in the two examples. The code fails as written. This change corrects it. (#15099)
1 parent d882fde commit 8ec3f4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngResource/resource.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ angular.module('ngResource', ['ng']).
475475
* ```js
476476
* angular.
477477
* module('myApp').
478-
* config(['resourceProvider', function ($resourceProvider) {
478+
* config(['$resourceProvider', function ($resourceProvider) {
479479
* $resourceProvider.defaults.actions.update = {
480480
* method: 'PUT'
481481
* };
@@ -487,7 +487,7 @@ angular.module('ngResource', ['ng']).
487487
* ```js
488488
* angular.
489489
* module('myApp').
490-
* config(['resourceProvider', function ($resourceProvider) {
490+
* config(['$resourceProvider', function ($resourceProvider) {
491491
* $resourceProvider.defaults.actions = {
492492
* create: {method: 'POST'}
493493
* get: {method: 'GET'},

0 commit comments

Comments
 (0)