IOT Virtual Conference - Register now to book your ticket and get updates
x
CONGRATULATIONS! C# Corner Q1, 2021 MVPs Announced
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forumguidelines
Maureen Moore
0
206
0
Query Parameter Not Showing the Correct Parameters
Sep 27 2020 9:44 AM
When I add items to the query parameters, it shows an object in the URL. How can I get it to show the items?
This is the HTML:
<
form
[formGroup]="submitForm" (ngSubmit)="checkOut(items)"
>
<
input
type
=
"submit"
value
=
"Check Out"
>
</
form
>
This is the component:
public
checkOut(items: any) {
this
.router.navigate([
'check-out'
], { queryParams: { items:
this
.items } });
}
This is what the URL looks like:
http://localhost:4200/check-out?items=%5Bobject%20Object%5D&items=%5Bobject%20Object%5D
Reply
Answers (
1
)
How to Embed PDF data (Base 64) in angular 6 component
Remove Traling slash form angular universal home page url for SEO