AngularJS Express component to add a custom ui-router "invalid route" handler.
To install the component:
$ ngx install angular-ui-router-configure-default-route
No clue what the ngx
command line tool is? Learn more about AngularJS Express.
After installing the component:
- edit
_build/register-invalid-route-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-configure-default-route/_build/index';
// Instantiate component
c(ngModule, { baseUrl: 'components/angular-ui-router-configure-default-route' });
baseUrl
: Base URL that component can use to construct links
- Initial version