I have written a directive to validate certain binded value and modify it before executing the action on the button. But any value update in directive value is not reflected in the parent scope. I have used (=) in the directive so my assumption is it will update the parent scope as well.
Let me know what I am doing wrong. Have attached the images.



This is the view where both parent and the directive sharing the same text value.
The result value assigned to the validate text is not reflected in the parent selected node. while the ok function is executed.
I do see the value getting updated back in the text area. But dont know why it is not updated when the ok funciton is executed.
I have tried $timeout, $evalAsync on the scope.ngClick with no success.
scope.ngClick()inside your directive? It is called automatically by Angular'sngClickdirective.