AngularJS - check if fields of model are the same with the initial values
<p>If I have the following object <code>$scope.object1</code> which looks something like this:</p>

<pre><code>{
 "firstName": "Name"
 "lastName": "Name"
 "startingDate": "08/Nov/2016"
 "endingDate": "16/Dec/2016"
 "description": "asd"
}
</code></pre>

<p>And I have a form which takes those values from backend and uses them on the input fields for date and description.
The fields are editable so changing <code>startingDate</code> in the form field will change starting date in <code>object1</code>.</p>

<p>I need to display some content based on the initial values of <code>$scope.object1</code> are the same with the values after submitting the form.</p>

<p>With other words, if nothing has changed.</p>

<p>How can I save the initial values of <code>object1</code> and compare them with the values after modifying the form? </p>