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

7 Common mistakes in Dot Net — You can avoid

  There are many common mistakes made during .NET (ASP.NET, .NET Core) development, which affect performance, security, and code… Code Crack...