docs(angular-mocks): fix typo in example

fromJSON() should be fromJson()
This commit is contained in:
Robb Shecter 2013-05-29 19:27:54 -06:00 committed by Pete Bacon Darwin
parent 76cb53f837
commit 0921bd0816

View file

@ -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();
* //...