i'm using angular
i have this router
{ path: 'inbox/:email', component: InboxMessagesComponent },
and i'm trying to get the email parameter using this code
this.email = this.route.snapshot.paramMap.get('email') ;
the url i have :
http://localhost:4200/inbox/test@email.com?folder=INBOX
and the result i get is like that:
email: "test@email.com?folder=INBOX"
but i'm expecting that email should equal only test@email.com
where do i have the problem and how can i fix that please ?!