Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.19 KB

README.md

File metadata and controls

54 lines (32 loc) · 1.19 KB

angular-express-header

Angular location HTML5 mode

AngularJS Express component to configure HTML5 mode in $locationProvider.

Installation

To install the component:

$ ngx install angular-location-html5-mode

To install specific handlers, you can install multiple components:

$ ngx install angular-location-html5-mode

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

How to use

After installing the component:

  • edit _build/configure-html5-mode.js

and import the component in your Angular application:

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

// Import component
import c from 'components/angular-location-html5-mode/_build/index';

// Instantiate component
c(ngModule, { baseUrl: 'components/angular-location-html5-mode' });

Component options

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

License

MIT

Change log

v0.1.0

  • Initial version