Replace angular.fromJson with JSON.parse (#7952)

This commit is contained in:
Jan Skovgaard
2020-04-14 10:31:52 +02:00
committed by GitHub
parent 90890cea33
commit a5ff8a429b
6 changed files with 123 additions and 123 deletions

View File

@@ -1572,7 +1572,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(JSON.parse(data));
* });
* $httpBackend.whenGET(/^\/templates\//).passThrough();
* //...