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/[email protected]?folder=INBOX
and the result i get is like that:
email: "[email protected]?folder=INBOX"
but i'm expecting that email should equal only [email protected]
where do i have the problem and how can i fix that please ?!