How to use the @ngrx/router-store.go function in @ngrx/router-store

To help you get started, we’ve selected a few @ngrx/router-store examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github atSistemas / angular-base / src / app / containers / account / actions / account.concat.actions.ts View on Github external
loginRequestAndNavigate = (user: UserModel) => concatActions(
    this.accountActions.loginRequest(user),
    response => (localStorage.setItem('access_token', response.payload.response.AccessToken),
      this.accountActions.getCurrentUser()),
    go('estimates')
  );
github bave8672 / angular-firebase-starter / src / app / store / user / user.effects.ts View on Github external
        .map(() => go('/account/profile'))
        .takeUntil(Observable.timer(10000));
github aviabird / listify / src / app / containers / dashboard-page / dashboard-page.component.ts View on Github external
goToSuggestionPage(){
    this.store.dispatch(go('/dashboard/suggestions'))
  }
}
github PierreRochard / general-angular / src / app / auth / apiurl.guard.ts View on Github external
.switchMap(inStore => {
        if (inStore) {
          return of(inStore);
        }
        this.store.dispatch(go(['/']));
        return of(false);
      });
  }
github blove / angular-reactive-authentication / src / app / users / sign-in / sign-in.component.ts View on Github external
.subscribe(value => {
        this.store.dispatch(go("/users/my-account"));
      });
  }