Bernd Brecher
Member since Jul 9, 2013
- Profile: /members/11054-bernd-brecher.htm
- Comments: 3
Recent Blog Comments By Bernd Brecher
-
What A Select $watch() Teaches Me About ngModel And AngularJS
Posted on Jul 18, 2013 at 11:09 PM
Thanks again for taking time to answer. I have a date which as model is an object (bound by the widget I'm implementing). The directive in this case needs to be able to react by setting the validity via modelCtrl.$setValidity('required', false); This could be also done in the controller... read more »
-
What A Select $watch() Teaches Me About ngModel And AngularJS
Posted on Jul 10, 2013 at 10:33 AM
@Ben, To specify my question. A made a directive for a date-input. There are two types of date bound to that field: the input field value as string and the model value as object (containing a javascript-date-object among other things). I was wondering if you think, that it makes sense to handle the... read more »
-
What A Select $watch() Teaches Me About ngModel And AngularJS
Posted on Jul 9, 2013 at 3:09 PM
Thank you very much for posting. I had quite some headaches with how selects work, this makes everything a whole lot clearer. I wonder however what you would think about the approach to add this logic into a directive, so that can keep your controllers as brief as possible.... read more »