angular-collapse
Version:
The idea is to give consumers of the component, all the control to modify content & behavior. Core and only feature of the collapsible is to expand and collapse. ##### click the header to expand or collapse
49 lines (36 loc) • 896 B
Markdown
The idea is to give consumers of the component, all the control to modify content & behavior.
Core and only feature of the collapsible is to expand and collapse.
`npm install angular-collapse --save`
* Angular 2+
in app.module.ts
```
import { AngularCollapseModule } from 'angular-collapse';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AngularCollapseModule // <== here ==>
],
providers: [],
bootstrap: [AppComponent]
})
```
Usage
```
<lib-angular-collapse>
<div header> this is header</div>
<div body> this is body</div>
</lib-angular-collapse>
//, as you can see the whole control, is with the consumer.
// customize from here on..
// happy coding
```
[](https://choosealicense.com/licenses/mit/)