I'm in the process of creating a recipe application and one feature I'd like to include is a shopping list page. On this page, users can click an "Add to Shopping List" button which will transfer the ingredients listed in a <ul>
onto another area on the page. Ideally, these ingredients would be removable and able to be marked as complete. Essentially, it's like a virtual shopping cart without any prices.
The ingredients are currently being fetched from an API using a HTTP GET request and displayed as follows:
<ul>
<li *ngFor="let item of api?.ingredientLines">{{item}}</li>
</ul>
If anyone has an example or guidance to provide on how to achieve this functionality, I would greatly appreciate it.