<html ng-app="">
<head> <!-- www.w3tr.com -->
<title>angular.merge Örnek</title>
<script SRC="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js">
</script>
</head>
<body bgcolor="#ccc">
<fieldset>
<legend>angular.merge Örnek</legend>
<script>
var sourceObj1 = {'name' : 'Jimi'} ;
var sourceObj2 = {'address' : '12-13/A12','zip': '21333'} ;
var myDest = {} ;
angular.merge(myDest, sourceObj1,sourceObj2);
document.write(myDest.name);
document.write("</br>");
document.write(myDest.address);
document.write("</br>");
document.write(myDest.zip);
</script>
</fieldset>
</body>
</html>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.