Msg in initController dashboard

This sound a stupid question but I cannot figure out. I want to access msg object from initController of dashboard template

                initController: function($scope, events) {
				
			//I want to access msg here
		
                }

Any way to do this, tks for any help

initController: function ($scope) {																		
    
    $scope.$watch('msg', function (msg) {
        if (!msg) {								
            return;
        }
        // msg with all it's properties available here							
                                    
    });
}
1 Like

perfect, I dont think could use watch like this