Skip to content

ngx-components/angular-ui-router-state-change-error-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-express-header

Angular ui-router state change error handler

AngularJS Express component to add a custom ui-router state change error handler.

A state change error occurs e.g. when a one of the resolve items of the state cannot be resolved.

Installation

To install the component:

$ ngx install angular-ui-router-state-change-error-handler

No clue what the ngx command line tool is? Learn more about AngularJS Express.

How to use

After installing the component:

  • edit _build/register-state-change-error-handler.js
  • add your custom logic

and import the component in your Angular application:

// Angular main module
var ngModule = angular.module('app', []);

// Import component
import c from 'components/angular-ui-router-state-change-error-handler/_build/index';

// Instantiate component
c(ngModule, { baseUrl: 'components/angular-ui-router-state-change-error-handler' });

Component options

  • baseUrl: Base URL that component can use to construct links

License

MIT

Change log

v0.1.0

  • Initial version

About

Angular Express component to add a custom ui-router state change error handler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published