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
Elavarasan R
164
11.4k
635.6k
In ionic, how to send array selected items to firebase DB
Jun 13 2020 6:42 AM
I have developed simple shopping cart. i am getting and displayed selected items successfully in html but need to store selected items (created as array) to firebase Database. I don't know how can I write selected items to firebase, if anyone knows kindly help me out.
this is my array created at cart.service.ts
cart.page.html
<
form
[formGroup]="createDataForm" (submit)="createData()"
>
<
ion-list
>
<
ion-grid
>
<
ion-row
*
ngFor
=
"let item of selectedItems"
lines
=
"inset"
>
<
ion-col
size
=
"5"
>
<
div
>
{{ item.name }} - {{ item.price | currency:'USD':'symbol' }}
</
div
>
</
ion-col
>
<
ion-col
size
=
"4.5"
>
<
ion-col
size
=
"2"
>
<
ion-label
text-right
>
{{ (item.price * item.count) | currency:'USD':'symbol' }}
</
ion-label
>
</
ion-col
>
</
ion-row
>
</
ion-grid
>
</
ion-list
>
Reply
Answers (
0
)
Getting child component data in parent component
Cannot bind to the port 3000. Please specify another port number