Comment

Comment by vladgur

Im curious if watching a function is conventional as in

   scope.$watch(function() {
        scope.bulb = controller.getState();
      });
as opposed to watching a data-bound variable and what how that(watching a func) affects performance

Note: from this example: http://jsfiddle.net/codef0rmer/2ZrX3/

parent vladgur 13 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton