ng2-tabs
Simple tabs control for your angular2 applications using bootstrap3. Does not depend of jquery. If you don't want to use it without bootstrap - simply create proper css classes. Please star a project if you liked it, or create an issue if you have problems with it.
Installation
-
Install npm module:
npm install ng2-tabs --save
-
If you are using system.js you may want to add this into
map
andpackage
config:
Usage
Import TabsModule
in your app and start using a component:
Dynamic html tab heading Tab contents. ...
<tabset>
is a container for all tabs[pills]="true|false"
Specifies if bootstrap pills should be used instead of regular tabs(onSelect)="doSomethingOnTabSelect($event)"
Callback to be called when tab is being selected
<tab>
is a single tab itemtitle
Simple tab title[disabled]="true|false
Indicates if current tab is enabled or disabled<span *tabHeading>...</span>
Allows to specify dynamic html content of the tab title
Sample
;; @ @
Take a look on samples in ./sample for more examples of usages.