﻿/// <reference path="../Services/AccountService.js" />
/// <reference path="../Services/PollService.js" />
(function () {
    angular
        .module('GVA.Creation')
        .controller('HomepageController', HomepageController);

    HomepageController.$inject = ['$scope', 'AccountService'];

    function HomepageController($scope, AccountService) {

        $scope.isLoggedIn = false;

        activate();


        function activate() {
            AccountService.registerAccountObserver(function () {
                $scope.isLoggedIn = (AccountService.account != null);
            });
        }
    }

})();

﻿/// <reference path="../Services/AccountService.js" />
/// <reference path="../Services/PollService.js" />
(function () {
    angular
        .module('GVA.Creation')
        .controller('HomepageController', HomepageController);

    HomepageController.$inject = ['$scope', 'AccountService'];

    function HomepageController($scope, AccountService) {

        $scope.isLoggedIn = false;

        activate();


        function activate() {
            AccountService.registerAccountObserver(function () {
                $scope.isLoggedIn = (AccountService.account != null);
            });

            $scope.isLoggedIn = (AccountService.account != null);
        }
    }

})();

Fix reloading homepage when signed in not showing dashboard
Fix reloading homepage when signed in not showing dashboard
