Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.


Member since Nov 17, 2014

Recent Blog Comments By Basha

  • AngularJS Code Smell: Defining $scope Methods In Directives

    Posted on Nov 17, 2014 at 9:37 PM

    @Ben, I have a scenario where I am using common directive for two controllers. For the common functionality I have added methods directly to the inherited scope, so that I don't have to duplicate the code in different controller. What do you suggest in this scenario? What would be the best approac... read more »