I try to build a accordion with Angular UI Bootstrap (http://angular-ui.github.io/bootstrap/#/accordion). On How do I set model according to chosen accordion group. UI Bootstrap i found a working solution to use a template.
In my code i add the template with <script type="text/ng-template" id="template/accordion/accordion-group.html">
In this template a can use {{heading}}
set by <accordion-group heading="{{group.title}}" content="{{group.content}}" ng-repeat="group in groups"></accordion-group>
.
But how do i set other custom template variables?
I tried to set content="{{group.content}}"
in the accordion tag too. Even if set, i don't know how to use it, tried {{content.group}} {{content}}
and {% content %}
.
Complete code on: http://plnkr.co/dSIVGg64vYSTAv5vFSof