0
我希望当我点击这个按钮时,'glyphicon-plus'变成'glyphicon-minus',当我再次点击时,它会再次'glyphicon-plus ”。 我想它应该是可复制的。我不希望它在CSS或jQuery中。 app.component.html:更改字形图标点击角2按钮
<button data-toggle="collapse"
[attr.data-target]="'#demo' + RowIndex">
<span class="glyphicon glyphicon-plus"></span>
</button>
大snorkpete ...这是为我工作。谢谢:) –
我有另一个问题。你可以请看看那个。我在这里给链接:http://stackoverflow.com/questions/43391568/how-to-add-a-tooltip-on-inputbox-dynamicaly-in-angular-2。谢谢 –