Get original values of the model with angularJS after clicking on button
<p>I used to get the original values of the model with <code>this.model.changed</code> or <code>this.model._previousAttributes</code> using BackboneJS.</p>

<p>I want to use the same function with angular, by detecting all the changes in the model set by text fields, checkbox, not in one text textField like the case with <code>ng-change</code>.</p>

<p>I tried to use it in the div of <code>form</code> but in vain.</p>

<p>I also tried to use :</p>

<pre><code> $scope.policyL = savingsDraft.fromServer();
    $scope.$watch('policyL', function (oldV, newV) {
 });
</code></pre>

<p>but it didn't work too.</p>

<p>Example of my view code : </p>

<pre><code>form(role='form', ng-change='changed (policy, newP)' novalidate)
  .row
    .col-sm-4.form-group
      label.control-label Taux de rendement
      input.form-control(type='number',
        min=0,
        max=1,
        ng-model='policy.admin.depEarnRate')
    .col-sm-4.form-group
      label.control-label Frais de contrat
      input.form-control(type='number',
        min=0,
        ng-model='policy.admin.feesIni')
</code></pre>

<p>and in my controller : </p>

<pre><code>$scope.accept = function () {
     $scope.change = function();
};
</code></pre>

<p>PS: I want to get the original model after clicking on the button accept.</p>