skbkontur/angular-router-ex

Name: angular-router-ex

Owner: Kontur

Description: null

Created: 2017-08-07 11:47:19.0

Updated: 2018-02-05 11:00:59.0

Pushed: 2018-03-26 14:45:44.0

Homepage: null

Size: 551

Language: TypeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Angular Router EX Build Status

Angular 5+ Router with custom route urls, route reusing/prerendering and more.

Install
i angular-router-ex --save
Usage

Define some routes

rt const ROUTES: Routes = [
{path: "", component: HomeComponent},
{path: "/home", component: HomeComponent},
{path: "/about", component: AboutComponent},
{path: "/item/:id", component: ItemComponent},

Import angular-router-ex with your routes in main application module

rt {RouterExModule} from "angular-router-ex";

odule({
imports: [ 
    ...
    RouterExModule.forRoot(ROUTES)
],

rt class AppModule {


Place router outlet in your root component template

ter-ex-outlet [autoScroll]="true"></router-ex-outlet>

Visit wiki for more documentation and examples.

Demo Project

checkout repo and run

i && npm start

default server port is 3000

run tests (unit + e2e)

run test

Demo project based on Angular Webpack Starter


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.