AngularJS Developer Question: Download Questions PDF
Tell me what makes the angular.copy() method so powerful?
Answer:
It creates a deep copy of the variable.
A deep copy of a variable means it doesn’t point to the same memory reference as that variable. Usually assigning one variable to another creates a “shallow copy”, which makes the two variables point to the same memory reference. Therefore if we change one, the other changes as well
A deep copy of a variable means it doesn’t point to the same memory reference as that variable. Usually assigning one variable to another creates a “shallow copy”, which makes the two variables point to the same memory reference. Therefore if we change one, the other changes as well
Download AngularJS Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me what is linking function and type of linking function? | What is a service? |