I'm trying to get two-way data binding working with my own directive. I'm using an isolate scope in the directive, and passing a model object using ng-model. However, I've noticed that the two way data binding only works if the model name is the same in the controller and the directive. If they are different, I'm getting some funny behavior (the binding only works every other action).
I have a fiddle that demonstrates the issue.
Also, I'm currently using a window.setTimeout in my directive because that is the only way I could manage to retrieve the DOM elements - I'm not sure why, could use some clarification on this as well.
Thanks for any help.