redirectIfNecessary() {
            const newState = this.state();

            if (newState) {
                $state.go(newState);
            }
        }
// Redirect to a new authentication state, if required
Redirect to a new authentication state, if required
Redirect to a new authentication state if required
redirectIfNecessary() {
            const newState = this.state();
            if (newState) {
                $state.go(newState);
            }
        }
redirectIfNecessary ( ) { const newState = this . state ( ) ; if ( newState ) { $state . go ( newState ) ; } }
Redirect to a new authentication state, if required
Redirect to a new authentication state if required