TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
Maureen Moore
NA
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
)
Detect whether a browser, a tab close event has been occured?
Remove Traling slash form angular universal home page url for SEO