1.0.1 • Published 4 years ago
lf-collapser v1.0.1
LfCollapser
This library was generated with Angular CLI version 8.2.14.
Implementation
import the LfCollapserModule in your module
import { LfCollapserModule } from 'lf-collapser';
@NgModule({
declarations: [
...
],
imports: [
LfCollapserModule
]
})
Component implementation
Use the #toggler identifier on the toggler html element
<div class="card highlight-card card-small" #toggler >Toggler</div>
and pass the toggler to the lf-collapser tag
<lf-collapser [toggle]="toggler" >
Content here!
</lf-collapser>
Demo
Clone the repo and check the demo for implementation example.