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 681c1c53e4
commit e0ca5fdd51

View file

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