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

Karol

Member since Dec 18, 2014

Recent Blog Comments By Karol

  • Exposing A Service Directly On The $scope In AngularJS

    Posted on Dec 18, 2014 at 4:25 PM

    Hi Ben, I know that you wrote about general problem however in that particular case there is nice and elegant solution: $scope.$on('$stateChangeSuccess', function(event, toState) { if (toState.data && toState.data.pageTitle) { $scope.pageTitle = toState.data.pageTitle; } });... read more »