Angular2 Tabs Routing
Simple Angular2 tabs component based on routing system. Uses version "2.0.0-beta.11" of Angular2.
##Getting Started
- Fork and clone this repo
- npm install
- Run the TypeScript compiler and watch for changes "npm run tsc"
- Open second terminal and launch the app in the browser "npm start"
To install this component to an external project, follow the procedure:
-
npm install. -
import {ng2RoutingTabs} from './ng2RoutingTabs/ng2RoutingTabs'; -
import {ng2RoutingTab} from './ng2RoutingTabs/ng2RoutingTab'; -
You need to configure your @RouteConfig on your component.
-
Use the following snippet inside your template:
<ng2-routing-tabs> <ng2-routing-tab [tabTitle]="'Tab1'" [tabLink]="[ './TabExample1']"></ng2-routing-tab> <ng2-routing-tab [tabTitle]="'Tab2'" [tabLink]="[ './TabExample2']"></ng2-routing-tab> <ng2-routing-tab [tabTitle]="'Tab3'" [tabLink]="[ './TabExample3']"></ng2-routing-tab> </ng2-routing-tabs>
- Firefox (latest)
- Chromium (latest)
- Safari (latest)
- License: MIT
- Author: edezacas