How to use the @uirouter/angularjs.RejectType.ERROR function in @uirouter/angularjs

To help you get started, we’ve selected a few @uirouter/angularjs 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 gridgain / gridgain / modules / web-console / frontend / app / components / page-configure / transitionHooks / errorState.js View on Github external
$uiRouter.transitionService.onError(match, ($transition) => {
        if ($transition.error().type !== RejectType.ERROR)
            return;

        go($transition);
    });
github ovh-ux / ovh-manager-dedicated / client / app / dedicatedCloud / service-pack / upgrade / upgrade.controller.js View on Github external
      transition => (transition.error().type !== RejectType.ERROR
        ? this.$q.when()
        : this.goBack().then(() => this.displayErrorMessage(transition.error()))),
    );
github ovh / manager / packages / manager / apps / public-cloud / src / index.js View on Github external
$state.defaultErrorHandler((error) => {
        if (error.type === RejectType.ERROR) {
          $state.go(
            'pci.error',
            {
              detail: {
                message: get(error.detail, 'data.message'),
                code: has(error.detail, 'headers')
                  ? error.detail.headers('x-ovh-queryId')
                  : null,
              },
            },
            { location: false },
          );
        }
      });
    },
github gridgain / gridgain / modules / web-console / frontend / app / configuration / transitionHooks / errorState.ts View on Github external
$uiRouter.transitionService.onError(match, ($transition) => {
        if ($transition.error().type !== RejectType.ERROR)
            return;

        go($transition);
    });
github ovh / manager / packages / manager / apps / dedicated / client / app / app.js View on Github external
$state.defaultErrorHandler((error) => {
        if (error.type === RejectType.ERROR) {
          $state.go(
            'error',
            {
              detail: {
                message: get(error.detail, 'data.message'),
                code: has(error.detail, 'headers')
                  ? error.detail.headers('x-ovh-queryId')
                  : null,
              },
            },
            { location: false },
          );
        }
      });
github ovh / manager / packages / manager / apps / dedicated / client / app / dedicatedCloud / service-pack / upgrade / upgrade.controller.js View on Github external
(transition) =>
        transition.error().type !== RejectType.ERROR
          ? this.$q.when()
          : this.goBack().then(() =>
              this.displayErrorMessage(transition.error()),
            ),
    );
github ovh / manager / packages / manager / apps / web / client / app / app.js View on Github external
$state.defaultErrorHandler((error) => {
        if (error.type === RejectType.ERROR) {
          $state.go(
            'app.error',
            {
              detail: {
                message: get(error.detail, 'data.message'),
                code: has(error.detail, 'headers')
                  ? error.detail.headers('x-ovh-queryId')
                  : null,
              },
            },
            { location: false },
          );
        }
      });
    },
github ovh-ux / ovh-manager-dedicated / client / app / app.js View on Github external
$state.defaultErrorHandler((error) => {
      if (error.type === RejectType.ERROR) {
        $state.go('error', {
          detail: {
            message: _.get(error.detail, 'data.message'),
            code: _.has(error.detail, 'headers') ? error.detail.headers('x-ovh-queryId') : null,
          },
        }, { location: false });
      }
    });
github ovh / manager / packages / manager / apps / dedicated / src / app / app.js View on Github external
$state.defaultErrorHandler((error) => {
      if (error.type === RejectType.ERROR) {
        $state.go('error', {
          detail: {
            message: get(error.detail, 'data.message'),
            code: has(error.detail, 'headers') ? error.detail.headers('x-ovh-queryId') : null,
          },
        }, { location: false });
      }
    });
github ovh / manager / packages / manager / apps / telecom / src / app / app.js View on Github external
$state.defaultErrorHandler((error) => {
        if (error.type === RejectType.ERROR) {
          $state.go(
            'telecomError',
            {
              detail: {
                message: get(error.detail, 'data.message'),
                code: has(error.detail, 'headers')
                  ? error.detail.headers('x-ovh-queryId')
                  : null,
              },
            },
            { location: false },
          );
        }
      });
    },

@uirouter/angularjs

State-based routing for AngularJS 1.x

MIT
Latest version published 2 months ago

Package Health Score

89 / 100
Full package analysis