My template has a dynamic title that is inserted using the following code:
<title>{{title}}</title>
For each of my pages/routes, I use a different controller where I define the title like this:
BackyApp.controller('HomeController', function($scope, $location, $window, $rootScope) {
$rootScope.title = 'Home';
});
I am looking to achieve something similar to the following:
$rootScope.title = 'Home' + $rootScope.siteName;
What would be the best approach to accomplish this?