After creating a URL for end-users to access, I wanted to retrieve data from the request body when they hit the URL from another module. The process involves fetching the data from the request body, passing it to my service, and then validating the response received.
ngOnInit() {
this.route.params
.subscribe((params : Params) => {
this.email=params['id'];
});
While I am able to fetch data from the URL itself by using the code above,
I encountered an issue with retrieving data from the request body when users click on the URL. This has made it challenging to pass this data to my service effectively.
The main objective is to retrieve two parameters from the request body accurately.