Skip to main content

Simon

Member since Oct 13, 2015

Recent Blog Comments By Simon

  • Isolating The ngModel Two-Way Data Binding Life-Cycle In AngularJS

    Posted on Oct 22, 2015 at 8:59 AM

    As always nice article Ben ! If your object have numerous properties it could be boring to set all one by one: I prefer to use the copy function from angular: vm.form = angular.copy(vm.friend); It's shorter ;-)... read more »

  • Handling Window Blur And Focus Events In AngularJS

    Posted on Oct 13, 2015 at 10:14 AM

    Hey Ben, Nice directives ;-) I think the Visibiliy API is more appropriate to trigger the focus/blur of the window element: https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API Furthemore it is quite well supported http://caniuse.com/#feat=pagevisibility... 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