How to add dynamic tab title in angularjs?

Viewed 14

I am having a common title for all the tabs i.e, "My App". But I want to make dynamic tab titles for the page I navigate into. Here's the reference code for that which is in angular js,

(function (angular) {
'use strict';
controllers.controller("page1",['$scope','$rootscope','$parse','$compile','$state','CommonService',
function($scope,$rootscope,$parse,$compile,$state,'CommonService'){
$rootScope.users = {};
$scope.Users = {};
$scope.selectedUsers = " ";
$scope.AssignComments;
$rootScope.pageTitle = "Page1";
}}

For this the tab title is showing as "My App". But I want to make it dynamic, how can I do that?

0 Answers
Related