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)
This commit is contained in:
committed by
Martin Staffa
parent
d882fde2e5
commit
8ec3f4b518
@@ -475,7 +475,7 @@ angular.module('ngResource', ['ng']).
|
||||
* ```js
|
||||
* angular.
|
||||
* module('myApp').
|
||||
* config(['resourceProvider', function ($resourceProvider) {
|
||||
* config(['$resourceProvider', function ($resourceProvider) {
|
||||
* $resourceProvider.defaults.actions.update = {
|
||||
* method: 'PUT'
|
||||
* };
|
||||
@@ -487,7 +487,7 @@ angular.module('ngResource', ['ng']).
|
||||
* ```js
|
||||
* angular.
|
||||
* module('myApp').
|
||||
* config(['resourceProvider', function ($resourceProvider) {
|
||||
* config(['$resourceProvider', function ($resourceProvider) {
|
||||
* $resourceProvider.defaults.actions = {
|
||||
* create: {method: 'POST'}
|
||||
* get: {method: 'GET'},
|
||||
|
||||
Reference in New Issue
Block a user