I have an issue witn angularjs, I created a factory and a directive on an input. In my directive, when the value of the input change, I want to update the controller value. But in fact, I am one event late in my controller. I explain myself:
- When I tape "A" on my input, my parent controller value does not change
- If I tape "B", my parent controller value will be "A"
- If I tape "C", my parent controller value will be "AB" ...
I created a plinkr to demonstrate my issue:
http://plnkr.co/edit/h0r0Gu7VqvWkkgshQtRC?p=preview
Thank you