Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 1.33 KB

README.md

File metadata and controls

56 lines (34 loc) · 1.33 KB

angular-express-header

Angular ui-router component

AngularJS Express to add a sample ui-router component with state configuration.

Installation

To install the component:

$ ngx install angular-ui-router-component

To install multiple angular-ui-router-component instances in the same app:

$ ngx install angular-ui-router-component homepage
$ ngx install angular-ui-router-component about
$ ngx install angular-ui-router-component contact

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

How to use

After installing the component:

  • edit state configuration in _build/configure-states.js

and import the component in your Angular application:

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

// Import angular-ui-router-component homepage component
import c from 'components/homepage/_build/index';

// Instantiate component
c(ngModule, { baseUrl: 'components/homepage' );

Component options

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

License

MIT

Change log

v0.1.0

  • Initial version