A full featured tab component for Angular (2 and above, including 4).
npm install angular-tabs-component
npm install angular-tabs-component
`
Include the library into your app module-
`
import 'TabModule' from 'angular-tabs-component';
`
Add it to your @NgModule imports-
`
@NgModule({
imports: [
BrowserModule
...,
...,
TabModule
],
declarations: [...],
...
})
`
Usage
`
I am the foo content
I am the bar content
`
Options
Apart from the default settings, there are a number of options that can be
specified for the tab components. Options are specified by directly adding it to the
element as attribute with property binding, attribute binding and event binding.
Possible options are:
* tabTitle (applicable to: tab, property): To set the title of that tab (required).
* active (applicable to: tab, property): To set any tab as by default active -
Usage:
`
I am the foo content
I am the bar content
`
* disabled (applicable to: tabs, property): To set the tabs disabled.
Usage:
`
I am the foo content
I am the bar content
`
* currentTabChange (applicable to: tabs, event): Notifies every time the tab is switched with the tab component object.
Usage:
`
I am the foo content
I am the bar content
``