how to auto reload page in typescript code example Example: reload page in typescript window.location.reload();