md-collapse
v0.0.1-alpha.1
Published
Angular 2 Material collapse
Downloads
10
Maintainers
Readme
md-collapse
Native Angular2 Material Collapse directive
Installation
npm install --save md-collapse
API
Example:
HTML sample code
<div [collapse]="isCollapsed">
Lorum Ipsum Content
</div>
TS sample code
//app-module.ts
import {MdCollapseModule} from 'md-collapse/collapse';
@NgModule({
imports: [
MdCollapseModule,
],
declarations: [
...
]
})
//component.ts
...
@Component({
selector: "..."
})
export class ... {
...
private isCollapsed: boolean = false;
...
}
Properties
collapse
- (?boolean=true
) - It show/hide the collapsible content through toggling.