$scope.percentages=JSON.parse(JSON.stringify(values));//Copy of the object in order to keep original values in $scope.percentages in parent controller.
$scope.percentages=JSON.parse(JSON.stringify(values));//Copy of the object in order to keep original values in $scope.percentages in parent controller.
<i>* You need to include ngSanitize (angular-sanitize.js) in order to use <ahref="https://docs.angularjs.org/api/ng/directive/ngBindHtml"target="_blank">ng-bind-html</a></i><br/>
<i>* You need to include ngSanitize (angular-sanitize.js) in order to use <ahref="https://docs.angularjs.org/api/ng/directive/ngBindHtml"target="_blank">ng-bind-html</a></i><br/>
$scope.percentages=JSON.parse(JSON.stringify(values));//Copy of the object in order to keep original values in $scope.percentages in parent controller.
$scope.percentages=JSON.parse(JSON.stringify(values));//Copy of the object in order to keep original values in $scope.percentages in parent controller.
...
@@ -30,10 +30,10 @@ $scope.openModal = function () {
...
@@ -30,10 +30,10 @@ $scope.openModal = function () {