I am in need of a way to verify if my income URL follows a specific format and then open a modal to perform an action. I have achieved this using the following code:
route.queryParams.subscribe(async params => {
if (!isNaN(params.rt)) {
console.log("URL Match");
this.show = true;
} else {
console.log("URL does not Match");
}
});
The required format for my URL is:
www.example.com?=123456
However, after completing the modal process, I would like to remove the query parameter from the URL.