Skip to content

Commit 0921bd0

Browse files
Robb Shecterpetebacondarwin
Robb Shecter
authored andcommitted
docs(angular-mocks): fix typo in example
fromJSON() should be fromJson()
1 parent 76cb53f commit 0921bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngMock/angular-mocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ angular.module('ngMockE2E', ['ng']).config(function($provide) {
15711571
*
15721572
* // adds a new phone to the phones array
15731573
* $httpBackend.whenPOST('/phones').respond(function(method, url, data) {
1574-
* phones.push(angular.fromJSON(data));
1574+
* phones.push(angular.fromJson(data));
15751575
* });
15761576
* $httpBackend.whenGET(/^\/templates\//).passThrough();
15771577
* //...

0 commit comments

Comments
 (0)