Hi,
Here in the first screen, the user will give some inputs as showing in screen and click on the Done button it leads to display the second screen,
2.
above in the second screen, you can see Done button changed to Add and below that it displays previously added list. whenever user added data, dynamically data gets bind with the grid as a new record and print the Total amount by summing up with the previous amount. The user can remove any selecting(by checkbox) record, so the checked amount will be subtracted from the total amount. below is another reference image.
all above functionality, I had implemented using JQuery for phonegap app. Now I am trying to implement the same functionality using ionic2.
Can anyone help me to implement at least up to binding user given data to the grid dynamically? I will be thankful for any response.
As you see in these example you have an iterateable variable like an array named contacts. On button click a new object contact will added to contacts.
In html the angular directive ngfor iterates over the array an adds for each entry in contacts a ‘tr’ to your html.
Every time you change the array contacts, by deleting or adding or…, anglur will rebuild your html.
So if I understood it correct, then you have code but is not working as expected.
In this case post related code. Maybe a typo or etc…