Angular 1.3.14 merge (dst) does not exist

I am puzzled by this. Angular api and github have a merge function that does a deep merge of two objects, as opposed to extend (), which makes a shallow copy.

I use google cdn for angular, and calling angular.extend ('param') works, but calling angular.merge ('param') gives an undefined function. Comparing angular.js from google and one of angular themselves, merging exists on angular, but not google.

Any ideas or anyone else with this problem. Can I tell Google somehow?

+6
source share
1 answer

Feel like a fool, it is only available in beta 1.4. I hope this helps someone who is interested anyway. :)

Also copied it from the latest version:

//Leave out the {} to directly change src function merge(src, newObj) { return angular.extend({},src, newObj); } 
+11
source

Source: https://habr.com/ru/post/983630/


All Articles