var app = angular.module("myApp", ["lightAccordion"]);
<light-accordion>
<!-- YOUR CONTENT -->
<any>
<!-- OTHER CONTENT -->
</any>
<any >
<!-- OTHER CONTENT AGAIN -->
</any>
</light-accordion>
(Put this options as attributes on the element with the "light-accordion" attribute)
Option | Description | Type | Default value |
---|---|---|---|
heading | Text for the header of your accordion | String | "" |
is-open | A value from your controller ("=?") to control if the accordion is opened | Boolean | "" |
Lorem ipsum dolor sit amet consectetur...
Lorem ipsum dolor sit amet consectetur...
lightAccordion is an angular directive to easily create accordions in your website!