Skip to content

Latest commit

 

History

History
51 lines (30 loc) · 1.24 KB

File metadata and controls

51 lines (30 loc) · 1.24 KB

angular-express-header

Angular ui-router state not found handler

AngularJS Express component to add a custom ui-router state not found handler.

A state not found event is triggered when a non-existent state is requested.

Installation

To install the component:

$ ngx install angular-ui-router-state-not-found-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-not-found-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-not-found-handler/_build/index';

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

Component options

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

License

MIT

Change log

v0.1.0

  • Initial version