How can I change the cursor of the mouse on reload of my angular application?

Discussão em 'Angular' iniciado por user10863293, Maio 26, 2025.

  1. user10863293

    user10863293 Guest

    I have to reload a page in my angular application in order to reset all my data.

    But when I do window.location.reload() I have a white screen, the user can think the application crash. So I wanted to have cursor:wait but it doesn't work.

    .ts file :

    ngOnInit() {
    document.body.style.cursor = "wait";
    }
    ngAfterViewInit() {
    document.body.style.cursor = "initial";
    }


    Someone have any solution ?

    Continue reading...

Compartilhe esta Página