Sander, http://plnkr.co/edit/JlVDPZ
Above is the Plnkr link. Try this: 1. Move slider by mouse and see the numbers change 2. Change number and see slider NOT change 3. click first reset button. It will work 4. move slider again 5. click second reset button. text boxes will reset but slider wont move. This is because the ng-model is on the Array (testArr). I don't have access to change the controller or its watcher because it is the ngModelController written on the core ( API<http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController>| Github repo line 979<https://github.com/angular/angular.js/blob/46cba2e05dff2ca34a1d5c85e6d68abc9c06d9fe/src/ng/directive/input.js>). I would like to use the core build controller in case I want to use the form/pristine/reset/error functionality built into this controller. the problem is that I would like to be able to change one variable without having to reset the whole array or adding a whole second watcher. -- Rhett :) On Wednesday, February 12, 2014 12:18:20 AM UTC-8, Sander Elias wrote: > > Hi Rhett, > > Ok, this clarifies some of it. However I have no idea how you set up the > rest of your directive(s). > The watch I posted before was without know you had an watch in already. If > you put out an plunk or > fiddle, I will take a look, and can perhaps provide you with some more > accurate insights. > > Regards > Sander > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
