Page 1 of 1

How do I force a screen to redraw from Typescript

Posted: Thu Oct 15, 2020 10:23 am
by kevinmcisaac

I have a screen with a Card that has a *nFor "let item of siteList" that creates card for each item in siteList.

Each card has a button with a Typescript event that allows the user to modify the items in siteList. At the end of the Typescript I want the page redraw due to the changes in siteList.

How do I force a screen to redraw from Typescript


Re: How do I force a screen to redraw from Typescript

Posted: Sat Oct 17, 2020 5:13 am
by kevinmcisaac

Figured it out. I need to update the variable used in the ngFor and angular change detection does the rest... very nice!