When use callback function parameter not change on UI


#1

i use function like this

html
///
{{balance}}

//

ts
///
balance:any;

bbb()
{
lightwallet.keystore.createVault({
password: password,
seedPhrase: seed,
hdPathString: “m/44’/60’/0’/0”
}, (err, ks) => {
this.balance = ‘444’;
global_keystore = ks;
this.setWeb3Provider(global_keystore, password);
});
}

When open page value on balance not set 444 sure i used function on ionviewload but UI not change value in balance but console.log(balance) changed

i must click any on screen value in balance changed

how to solved this problem ? help me pls.


#2

help me or guide me pls


#3

Where is bbb() called from?


#4

call from ionViewDidLoad()


#5

OK i can solution this issue

Because i using async.map on typescript

i removed async it work thank you for resolve