Reload AngularJS Controller
I'm a newbie to angularjs. My problem is that I have a User Controller for handling Login and Logout. I have also another controller to load a header menu for my site. If the user logs in to the site my isAuthenticated variable is set to true. If the variable is set to true the header should be change but, so I think the controller must be reloaded to change the header view. Here the code of my HeaderController: myapp.controller('HeaderController', ['$scope', '$location', '$window', 'AuthenticationService', function HeaderController($scope, $location, $window, AuthenticationService) { $scope