I have implemented the following code:
this.router.navigate(['/app/chart', {chartColor: this.color, chartWidth: this.width}]);
Upon executing this code, the URL is set to:
http://localhost/app/chart;chartColor=blue;chartWidth=600
Everything seems to be working as expected. However, I have observed that when I call the function to send the variables to the URL, my component gets reloaded, which is not the desired behavior.
My objective is to simply pass variables to the URL without reloading the component
Are there any alternative ways to achieve this without reloading the component?