I tried to use ionViewDidEnter()
instead of ionViewDidLoad()
. Strangely, this works as expected, and the init() method is called, when everything in the constructor is completed.
Thank you both, @HugoPetla and @rapropos.
However, I digged deeper into what you said:
I think this is the root of the problem. The this.result
object is not built completely when I pass it to my page. I try to pass it to early. This is due to a complicated structure of nested loops and if statements and one asynchronous function call and it doesn’t really belong the the core question of this thread. Hence, I opened a new topic for that and I highly appreciate your help here, @rapropos and all others.
It can be found here: Identify when nested FOR loops and IF statement with one asynchronous function call are done
THANK YOU!