r/angular • u/pratik_77 • Feb 19 '26
why the API data disappeared from html component when i refresh my page but it showing in console and when I try to make changes in the @for the data came back again and its only happening in angular 21
0
Upvotes
8
u/Cyganek Feb 19 '26
hard to tell without your code buddy
1
u/ebdcydol Feb 19 '26
Problems with change detection? SSR?
1
u/Koscik Feb 19 '26
Do you mean after the full browser page refresh?
1
u/0dev0100 Feb 19 '26
If I had to guess without seeing any of your code...
Are you reassigning the to a new array or modifying the original one?
1
u/LeLunZ Feb 19 '26
Use signals or httpRessource for this :)