function pageTitle($rootScope, $timeout) {
    return {
        link: function(scope, element) {
            var listener = function(event, toState, toParams, fromState, fromParams) {
                // Default title - load on Dashboard 1
                var title = 'Mutuelle GIZ | Responsive Admin Theme';
                // Create your own title pattern
                if (toState.data && toState.data.pageTitle) title = 'Mutuelle GIZ | ' + toState.data.pageTitle;
                $timeout(function() {
                    element.text(title);
                });
            };
            $rootScope.$on('$stateChangeStart', listener);
        }
    }
}
/**
 * pageTitle - Directive for set Page title - mata title
 */
Directive for set Page title - mata title
Directive for set Page title - mata title
function pageTitle($rootScope, $timeout) {
    return {
        link: function(scope, element) {
            var listener = function(event, toState, toParams, fromState, fromParams) {
                var title = 'Mutuelle GIZ | Responsive Admin Theme';
                if (toState.data && toState.data.pageTitle) title = 'Mutuelle GIZ | ' + toState.data.pageTitle;
                $timeout(function() {
                    element.text(title);
                });
            };
            $rootScope.$on('$stateChangeStart', listener);
        }
    }
}
function pageTitle ( $rootScope , $timeout ) { return { link : function ( scope , element ) { var listener = function ( event , toState , toParams , fromState , fromParams ) { var title = 'Mutuelle GIZ | Responsive Admin Theme' ; if ( toState . data && toState . data . pageTitle ) title = 'Mutuelle GIZ | ' + toState . data . pageTitle ; $timeout ( function ( ) { element . text ( title ) ; } ) ; } ; $rootScope . $on ( '$stateChangeStart' , listener ) ; } } }
pageTitle - Directive for set Page title - mata title
pageTitle - Directive for set Page title - mata title
// Default title - load on Dashboard 1 // Create your own title pattern