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

Commit ed89fc8

Browse files
sethbattinpetebacondarwin
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 6a7a325 commit ed89fc8

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
@@ -472,7 +472,7 @@ angular.module('ngResource', ['ng']).
472472
* ```js
473473
* angular.
474474
* module('myApp').
475-
* config(['resourceProvider', function ($resourceProvider) {
475+
* config(['$resourceProvider', function ($resourceProvider) {
476476
* $resourceProvider.defaults.actions.update = {
477477
* method: 'PUT'
478478
* };
@@ -484,7 +484,7 @@ angular.module('ngResource', ['ng']).
484484
* ```js
485485
* angular.
486486
* module('myApp').
487-
* config(['resourceProvider', function ($resourceProvider) {
487+
* config(['$resourceProvider', function ($resourceProvider) {
488488
* $resourceProvider.defaults.actions = {
489489
* create: {method: 'POST'}
490490
* get: {method: 'GET'},

0 commit comments

Comments
 (0)