mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-29 20:40:29 +00:00
docs(angular-mocks): fix typo in example
fromJSON() should be fromJson()
This commit is contained in:
parent
76cb53f837
commit
0921bd0816
1 changed files with 1 additions and 1 deletions
2
src/ngMock/angular-mocks.js
vendored
2
src/ngMock/angular-mocks.js
vendored
|
|
@ -1571,7 +1571,7 @@ angular.module('ngMockE2E', ['ng']).config(function($provide) {
|
|||
*
|
||||
* // adds a new phone to the phones array
|
||||
* $httpBackend.whenPOST('/phones').respond(function(method, url, data) {
|
||||
* phones.push(angular.fromJSON(data));
|
||||
* phones.push(angular.fromJson(data));
|
||||
* });
|
||||
* $httpBackend.whenGET(/^\/templates\//).passThrough();
|
||||
* //...
|
||||
|
|
|
|||
Loading…
Reference in a new issue