Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49248

How to refresh a page for only one time?

$
0
0

@scharli wrote:

I wants to refresh a page for only one time using angular 7.

I have tried
ngOnInit(){
let win = (window as any);
if(win.location.search !== ‘?loaded’ ) {
win.location.search = ‘?loaded’;
win.location.reload();
}
}
but this code refresh the page continuously.
Please someone give me solution, Thanks in advance.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>