angular-xeditable
angular-xeditable copied to clipboard
Ability to see if form has changed values
I have editable form and want to throw up a confirm dialog if you make changes but don't hit save (hit cancel). Is there a way to see if the form values changed?
Let's say your editable form has:
<form editable-form name="myEditableForm" oncancel="checkCanceled()">
You can access values like an angular form in your controller. Check $scope.myEditableForm.$dirty:
$scope.checkCanceled = function() {
console.log($scope.myEditableForm.$dirty);
};
@JetFault are you still having an issue?