I make a Project which by firebase and Angular.
First this is my ts code.
...
async ngOnInit() {
this.email = await this.loginServise.userInfo();
this.arrayBouquetName = await this.fireStore.collection("user").doc(this.email).get().toPromise();
this.arrayBouquetName = await this.arrayBouquetName.get("src");
this.arrayBouquetSrc = await this.getSrc();
console.log(this.arrayBouquetSrc);
}
async getSrc() {
return new Promise(async(resolve, reject) => {
for await (let item of this.arrayBouquetName){
this.arrayBouquetSrc.push(item);
}
console.log("Does it work? : ",this.arrayBouquetSrc)
resolve(this.arrayBouquetSrc);
})
}
...
and this is my template file (HTML)
<div id="canvas-my-bouquet">
<div id="container-my-bouquet">
check it : {{arrayBouquetSrc}}
</div>
</div>
When i run this code i can't see value of arrayBouquetSrc below picture

however,When i change arrayBouquetSrc => arrayBouquetName, I can see value of variable.

I don't know what is reason and how to solve this situation...
I know If i dynamic
arrayBouquetSrcingetSrc(), and then returning the same array in order to assign it to the same variable again?