What seems to be the issue here?
(function() {
'use strict';
angular
.module('app')
.run('pageTitle', pageTitle);
function pageTitle($rootScope, $http) {
$rootScope.$on('$routeChangeSuccess', function (event, current, previous) {
$rootScope.title = current.$$route.title;
});
}
})();
I am encountering the following problem:
Error: ng:areq
Invalid Argument
The argument 'fn' is expected to be a function, but a string was provided instead