Does anyone have examples of using perhaps $parsers and $formatters to maintain 2 parallel values when changes are made, both programmatically in Angular and by events outside of angular?
On Monday, July 16, 2012 7:08:10 PM UTC-7, ProLoser wrote:To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/A85fkR1K-coJ.--Why use ngModelController.$render instead of scope.$watch(iAttrs.ngModel)?Is there a difference or significant reason for using one over the other?
How do I set / manage the model value? Lets say my model should be a rich object, but the view (<input>) should just have a string, my plugin already updates the text of view (<input>) but I don't know the best way to go about updating the model value. It doesn't make sense to watch the viewValue for change, because then I'd just be watching the model.
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
Cheers, didn't know the API was uniformly value passed and value returned (since it is in no way outlined in the docs). It also doesn't mention that the stack is an array that I need to push a function onto. Or at least I couldn't find those specific points when reading the API
On Monday, July 16, 2012 7:08:10 PM UTC-7, ProLoser wrote:--Why use ngModelController.$render instead of scope.$watch(iAttrs.ngModel)?Is there a difference or significant reason for using one over the other?
How do I set / manage the model value? Lets say my model should be a rich object, but the view (<input>) should just have a string, my plugin already updates the text of view (<input>) but I don't know the best way to go about updating the model value. It doesn't make sense to watch the viewValue for change, because then I'd just be watching the model.
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/U-J-u4OYV1IJ.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.