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