2

I have something like this:

    public async getTheThing() {
        .....
        
        console.log(`getTheThing a: ${NgZone.isInAngularZone()}`);
        const response = await this.http.get(url, {headers: headerDict}).toPromise();
        console.log(`getTheThing b: ${NgZone.isInAngularZone()}`);

        return response.someValue;
    }

the output is:

getTheThing a : true
getTheThing b : false

Is this supposed to be normal? If it is normal then why is my UI not refreshing correctly?

gyozo kudor
  • 6,284
  • 10
  • 53
  • 80

0 Answers0