angular-collapse
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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

Package Sidebar

Install

npm i angular-collapse

Weekly Downloads

10

Version

0.0.5

License

mit

Unpacked Size

44.1 kB

Total Files

26

Last publish

Collaborators

  • soniankur