$ionicPopup.confirm({ title: $rootScope.app_name, template: 'Do you want to add this to database?', buttons: [ { text: '<b>Yes</b>', type: 'button-positive', onTap: function (e) { } }, { type: 'button-canceldark', text: '<b>No</b>', onTap: function (e) { } } ] });