refresh the same component in angular code example
Example 1: how to reload the same page using javascript
BY LOVE
window.location.reload();
Example 2: how to refresh the page using react
window.location.reload(false);
BY LOVE
window.location.reload();
window.location.reload(false);