Hello all.
I’m wondering how I would change the text on a button.
So I have the following:
$scope.watchThisModel = '<b ng-model="watchThisModel">'+ 'watch' + ' <span class="ion ion-eye" style="font-size:40pt"></span></b>';
$ionicActionSheet.show({
destructiveText: '<b>report this</b>',
titleText: 'I want to...',
cancelText: 'Cancel',
buttons: [
{text: '<b>share this <span class="ion ion-share" style="font-size:40pt"></span></b>'},
**{text: $scope.watchThisModel }**
],
cancel: function() {
// add cancel code..
},
buttonClicked: function(index) {
if(index === 1){
$timeout(function() {
itemsService.watchItem(itemId)
.then(function(data){
//......HERE I want to be able to change the text of the second button
The Action Sheet is in a list of others, so I’ve tried all sorts like finding the index of the ActionSheet and changing it that way, but I’m getting nowhere.
Please let me know if this isn’t a clear question (it makes sense in my head!)
Many thanks