AngularJS | Accordion

Make a Accordion using AngularJS. Accordions are elements used to expand and collapse content that is broken into logical sections, much like tabs. I have used ngClick, ngShow and ngInit directives to make exact like jQuery Accordion.

ngClick - Linking to each Accordion contents.

ngShow - Display Accordion content based on ngClick.

ngInit - Evaluate an expression in the current scope (Display first accordion default).

Example

shanidkv's picture