I need to check if my income URL is a specific formate then open modal and do something. I do this with this code:
route.queryParams.subscribe(async params => {
if (!isNaN(params.rt)) {
console.log("URL Match");
this.show = true;
} else {
console.log("URL does not Match");
}
});
my format should be like :
www.example.com?=123456
but i need if complete modal Process, remove query param from url