Last Updated: February 25, 2016
·
722
· 534n

AngularJS Accordion with templateURL

https://github.com/534N/accordion-wt

I don't know why but the existing directives available don't really take a templateURL for accordion content.

It turns out not difficult to make at all. All it takes is to use the $compile service in the link function to render the provided template with the current scope.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Related Tags
#angularjs
Did you know?

AngularJS pages are long-lived browser apps with the same script risk as a newer single-page app. Third-party code in the template can read forms and values rendered on the page.

Security insights from Cside