UNPKG

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
# angular-collapse 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 ## Installation `npm install angular-collapse --save` ### Requirements * Angular 2+ ## Usage 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 ``` ## License [MIT](https://choosealicense.com/licenses/mit/)