Saturday, 2 December 2023

Promise issue ionic angular

 due to promise in console value not printed. below issue we getting.

__zone_symbol__state: null, __zone_symbol__value: Array(0) - Ionic Framework / ionic-v3 - Ionic Forum

i used to resolve using promise.

error

to print use then

instead of this

this.userdata.get();

use below then;

this.userdata.get()
.then( res =>
  alert(console.log(res))
  )
    )

No comments:

Post a Comment

API run block issue run api from cmd

  ✅ Debug Checklist – “Access is Denied” (.NET / Visual Studio) 🔹 Identify Problem ☐ Error: Unable to start program (.exe) – Access is deni...