I have a variable I\'m setting in my view with ng-init which I am then trying to access in my controller. When I try to access it however, I\'m getting an
ng-init
Wait until the variable is init.
$scope.$watch('pageTitle', function () { console.log($scope.pageTitle); });