Ionic Shopping List

Asked

Viewed 111 times

1

Good night, you guys.

I’m making an application for Ionic that consists of a cash register. The customer selects the item that will buy and at the end appears the total amount of the purchase, however I have no idea where it starts. Does anyone have any idea?

1 answer

1

Samuel, what version of Ionic are you using? Will you persist with this data in a database? Or is it all local?

In general, what you need is to have a screen for the listing (array) of the available products in which you have a search bar (for product filtering), in which each item of this listing (via ng-repeat or ngFor, depends on your version) will be a unique product, you can put its name and a "+" button (to add) to your list. The click event of this button will execute a function that has as parameter the product item, and this parameter will be added at the last position (.push()) of the product array.

A very simple type of app that can help you are the "todo lists" (to-do list). You may end up basing yourself on one of them to make your.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.