Tengo dos páginas: http://localhost:4200/text y http://localhost:4200/wizard
Tengo un botón en la página del asistente de la siguiente manera en el asistente.html :
<body> <button (click)="clear();">Clear</button> </body>En el archivo Wizard.component.ts tengo la función clara :
clear(): void{ //Here I wanted to refresh the http://localhost:4200/text page on the button click. }Quería actualizar la página http://localhost:4200/text al hacer clic en el botón. La página del asistente actual aún debe estar abierta sin ningún cambio. Probé location.reload(); y window.location.href=window.location.href pero no funcionó.
puede alguien ayudarme con esto? ¡Gracias por adelantado!