Jeremy Likness
Member since Jun 24, 2015
- Profile: /members/12712-jeremy-likness.htm
- URL: http://csharperimage.jeremylikness.com/
- Comments: 3
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 »