Skip to main content

Bernd Brecher

Member since Jul 9, 2013

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 »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel