Factory.
KopBob
0 Likes0 CommentsjavascriptcurrentNgModule.factory('PageTitleService', function ($rootScope) { return { updateWith: function (title) { $rootScope.pageTitle = title; } } });
currentNgModule.factory('PageTitleService', function ($rootScope) { return { updateWith: function (title) { $rootScope.pageTitle = title; } } });