how to refresh dom in angular 6 code example Example: how to refresh page angular refresh(): void { window.location.reload(); }