0.0.5 • Published 6 years ago

angular-collapse v0.0.5

Weekly downloads
26
License
mit
Repository
-
Last release
6 years ago

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