Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.map(() => go('/'));loginRequestAndNavigate = (user: UserModel) => concatActions(
this.accountActions.loginRequest(user),
response => (localStorage.setItem('access_token', response.payload.response.AccessToken),
this.accountActions.getCurrentUser()),
go('estimates')
);backToHome(){
this.store.dispatch(go(['/dashboard/feeds']))
} .map(() => go('/account/profile'))
.takeUntil(Observable.timer(10000));goToSuggestionPage(){
this.store.dispatch(go('/dashboard/suggestions'))
}
}.switchMap(inStore => {
if (inStore) {
return of(inStore);
}
this.store.dispatch(go(['/']));
return of(false);
});
} .map(() => go('/Profile'));public signUp() {
this.store.dispatch(go("/users/sign-up"));
}.subscribe(value => {
this.store.dispatch(go("/users/my-account"));
});
}public home() {
this.store.dispatch(go("/"));
}