angular.extend creates a shallow copy of one or more sources object provided to destination object. In this example three objects students, student1 and student2 source object students and dest as destination object. See the code snippet:
angular.extend