A demo project that shows how a modular client can wire in an automated main nav based on its modules
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
e2e
.dockerignore
.editorconfig
.gitignore
.travis.yml
CHANGELOG.md
Dockerfile
LICENSE
README.md
favicon.ico
index.html
karma-test-shim.js
karma.conf.js
package.json
protractor.config.js
styles.css
systemjs.config.js
tsconfig.json
tslint.json
typings.json
wallaby.js

README.md

Automated Nav in Angular 2

This demo uses the Angular 2 Quickstart project (a la RC4) to demonstrate the construction of an automated nav in a modular client. It corresponds with this blog post on my website.

To test:

Pull this repo, and run the installation:

$ npm install
$ typings install

The app should start right up if you run:

$ npm start

Navigate to http://localhost:3000 to see it in action.

If you'd like to experiment with adding or removing modules from your route configurations, the simplest way is to comment-out their routes from the main route registry, in app/app.routes.ts.

You can also find the functionality that automates the main nav in app/core-components/header.component.ts.