How to use the routeshub.forwardParams function in routeshub

To help you get started, we’ve selected a few routeshub 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 maktarsis / concept-store-platform / src / app / core / components / header / header.component.ts View on Github external
public auth(): void {
    if (this.user && this.user.catchPhrase) {
      const state = forwardParams(this.hub.userCenter.id.state, {
        id: this.user.id
      });
      this.router.navigate(state).catch(console.error);

      return;
    }

    this.authPopUp();
  }

routeshub

A route management library and pattern for Angular

MIT
Latest version published 4 years ago

Package Health Score

48 / 100
Full package analysis