In my list of objects, I can activate / inactive the object. So, the icon activates the action, and the other makes an inactive action, and both are in the same one md-list.
This is what I do
the code:
<md-list ng-app="MyApp" class="listdemoListControls" ng-controller="ListCtrl">
<md-list-item ng-repeat="message in messages" ng-click='actionOne("action one")'>
<p>{{message.title}}</p>
<md-button class="md-secondary md-icon-button" ng-if="!showActionThree" ng-click="actionTwo('action two')">
Two
</md-button>
<md-button class="md-secondary md-icon-button" ng-if="showActionThree" ng-click="actionThree('action three')">
Three
</md-button>
</md-list-item>
</md-list>
The problem is that my function actionThreedoes not work.
It looks like when I use the class md-secondary, it creates a wraper that gets my function actionTwo, and this dos function does not change.
Is there any way to make this work?
Related Problem # 3744
source
share