I have found this demo in (jsfiddle), One thing I am not sure is the okay button they have
<button ng-click="activity.isEdited = false">Ok</button>
With this function, I am wondering if we can still add a function inside the ng-click? with something like this?
<button ng-click="domeSomthing()">Ok</button>
Can we include both activity.isEdited = false and domeSomthing()inside the ng-click?