Я новичок в angularjs Я хочу окружить кнопку на своем аккордеоне значком или wigh is in accordion.template. html вот так:
<div class="item-expander ">
<div class="wrap-link-accordeon">
<div ng-switch ="heading" class="heading">
<h3 ng-switch-when="h3" class="heading" >
<button ng-click="ctrl.SurClicAccordeon($event)"
class="link-expander">
<div></div>
<i class="material-icons plus" aria-hidden="true"></i>
<i class="material-icons minus" aria-hidden="true"></i>
</button>
</h3>
<h4 ng-switch-when="h4" class="heading">
<button ng-click="ctrl.SurClicAccordeon($event)"
class="link-expander" >
<div></div>
<i class="material-icons plus" aria-hidden="true"></i>
<i class="material-icons minus" aria-hidden="true"></i>
</button>
</h4>
</div>
Я хотел бы передать данные со страницы Example.template. html, которая проходит через AccordionList.template. html Я использовал heading = "h3", но это не сработало
это мой Exemple.template. html
<cds-liste-accordion liste-accordeon="ctrl.sujets"
heading ="h3">
<titre>...</titre>
<content>...</content>
<cds-list-accordion>
и это мой шаблон AccordionList. html
<div class="list-accordion">
<cds-accordeon
ng-repeat="item in ctrl.listeAccordeon track by $index"
heading ="h3"
class="heading">
<titre ng-transclude="titre"></titre>
<contenu ng-transclude="contenu"></contenu>
</cds-accordion>
</div>