This example illustrates how to use copy of an object (see stackoverflow question).

We define an initial object, and then assign it to a new object initialAssign. So, these two objects are bound.

Now, assign initial object to a new object initialCopy as a copy. So, these two objects are now independent.

initial:
initialAssign:
initialCopy: Reset to initial value

initial: {{ initial }}
initialAssign: {{ initialAssign }}
initialCopy: {{ initialCopy }}