Skip to main content

Jeremy Likness

Member since Jun 24, 2015

Recent Blog Comments By Jeremy Likness

  • Thinking About Static vs. Private Methods In TypeScript / Angular 2

    Posted on Jun 6, 2016 at 8:20 AM

    I don't think you ever need static methods. It sounds like what you want to do is take a strategy (i.e. reversing the input) and make it accessible in multiple places. You are tackling it from an object-inheritance perspective, but is that the right approach? In the JavaScript world, I think it work... read more »

  • Understanding How To Use $scope.$watch() With Controller-As In AngularJS

    Posted on Jun 24, 2015 at 9:01 AM

    @Ben, That's a great explanation! I'm still curious about the use of $watch in that case. For example, in the case of showing the count, what are your thoughts on simply exposing a property: Object.defineProperty(controller.prototype, "objCount", { enumerable: true, configurable... read more »

  • Understanding How To Use $scope.$watch() With Controller-As In AngularJS

    Posted on Jun 24, 2015 at 7:48 AM

    Ben, I'm curious what scenarios you run into that force you to use $watch on your controller. I've been using controller-as since it became available, and I have never once had to restore to a $scope.$watch in a controller (with the exception of "controllers" in directives due to isolate... 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