Avatar of Steve Hougom
Steve Hougom
Flag for United States of America

asked on 

Angular component section of a page wont refresh data

In angular we can make our html to have seperate sections of components which is pretty neat.

BUT.  Sometimes I cant get changeDetection to work.

e.g host html page


app-component-section1       html
<span>{{getTotalValue}}</span>  THIS IS NOT UPDATING when value below is changed.

app-component-section1      typescript

getTotalValue: string;

service call to get api data from sql server etc

   //return api data
//this value updates as expected

I have tried change detection but it isnt working.
Angular* typescript programming

Avatar of undefined
Last Comment
Julian Hansen

8/22/2022 - Mon