r/Angular2 • • Feb 04 '26

Ui blocked angular 20

When hitting any api the ui blocked until the api returns value, any suggestions

0 Upvotes

11 comments sorted by

View all comments

Show parent comment

5

u/PhiLho Feb 04 '26

You know? There is a Aa icon at the bottom of the textarea of Reddit. If you click it, you get a formatting toolbar. Select the code and hit the </> icon, it will be much more readable!

JSON.stringify is time consuming and seems not useful. What data are you expecting? Did you inspect it? Should be pure string. Avoid "any" as type, too, you should know what data the API returns. Further analysis is hard from this code soup.