ionic-toast icon indicating copy to clipboard operation
ionic-toast copied to clipboard

how can i display the value of a variable in the ionicToast ?

Open PManager1 opened this issue 8 years ago • 2 comments

var secondMethod = function(someStuff) { var len = someStuff.length; ionicToast.show('Updating number of values {{len}} in the database','middle', false, 1000);

PManager1 avatar Feb 19 '17 02:02 PManager1

Did you try ?

var secondMethod = function(someStuff) {
var len = someStuff.length;
ionicToast.show('Updating number of values' + len + 'in the database','middle', false, 1000);

Sanket30 avatar Mar 02 '17 04:03 Sanket30

It's done thanks

Best Regards, Jay

On Mar 1, 2017, at 11:51 PM, Sanket Tajane [email protected] wrote:

Did you try ?

var len = someStuff.length; ionicToast.show('Updating number of values' + len + 'in the database','middle', false, 1000);``` — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

PManager1 avatar Mar 02 '17 10:03 PManager1