this is my simple test.html file and i wanted to pass employeeId to localhost:4200/homePage. When i use get method then it working fine but with post getting error Cannot Post
<form action="localhost:4200/homePage" name="goToAngular" method="post">
<input type="text" name="employeeID" value="" id="apiUrl" id="employeeID"/>
<input type="submit" value="go"/>
</form>
On the homePage-component.ts file i am using this code--
this.route.queryParams.subscribe((params: Params) =>
this.empID = params['employeeID'];
}