I am not using a full person object like the example but a simple string that is on my model - searchterm.
I have textbox and it display the default i set in the model. When i edit the textbox the value on the scope is not updating but if i add a second textbox and set it to the same model variable it updates as i type.
The only way i have gotten to update the model value on the scope is to add a change event on the textbox, pass in the model value from the view and update the scope!
Odd angular model binding going on
Quick question on model binding.
I am buiding a custom dashboard in the backend (based on Tims People tree - https://github.com/TimGeyssens/UmbracoAngularBackofficePages/blob/master/TestSite/App_Plugins/Example/backoffice/peopleTree/edit.controller.js)
I am not using a full person object like the example but a simple string that is on my model - searchterm.
I have textbox and it display the default i set in the model. When i edit the textbox the value on the scope is not updating but if i add a second textbox and set it to the same model variable it updates as i type.
The only way i have gotten to update the model value on the scope is to add a change event on the textbox, pass in the model value from the view and update the scope!
Driving me nuts as to why!! Any ideas??
Here is the bit from the view
Here is the controller:
You have a error in your view. You have {{ searchTerm}}. This should be {{searchTerm}} without the leading space.
Dave
is working on a reply...