I work in a shopping cart, where a person must fill out 2 similar forms on one page. The first form is the Billing Address, and the second form is the Delivery Address. Both forms contain similar input elements, for example:
a) Billing address: name, address line 1, address line 2, country, telephone, etc.
b) Delivery address: name, address line 1, address line 2, country, telephone, etc.
There is a flag that says: "Check if the billing address and delivery address match." Thus , if only when the checkbox is selected , I need to copy the data from the billing address to the delivery address, even if the user made changes to the billing address, he should automatically copy the changes to the delivery address.
I need to do this using Angular JS. Can some body tell me how to do this?
(Edit: I'm new to Angular Js and don't know where to start)
source
share