I have a checkbox for setting a billing address to the mailing address, so if the checkbox is checked, the two values will always be the same, even if one changes. As of now, I can get the billing address to copy the mailing address once the box is checked, but if you change the values afterwards, the view is not updated. Here is what I have so far: 

**createcustomer.html:**

```
<section class="mainbar" data-ng-controller="createcustomer as vm">
<div class="col-md-4">
                            <label for="txtMailingAddress1">Address 1:</label>
                        </div>
                        <div class="col-md-8">
                            <input type="text" id="txtMailingAddress1" name="txtMailingAddress1" value="" data-ng-model="vm.MailingAddress1" class="form-control FloatLeft" required />
                        </div>

<input type="checkbox" id="checkboxSameAddress" data-ng-model="vm.IsBillingMailing" data-ng-change="vm.copyMailingAddress()" />Check if billing address same as mailing address

<div class="form-group">
                        <div class="col-md-4">
                            <label for="txtBillingAddress1">Address 1:</label>
                        </div>
                        <div class="col-md-8">
                            <input type="text" id="txtBillingAddress1" name="txtBillingAddress1" data-ng-model="vm.BillingAddress1" class="form-control FloatLeft" required />
                        </div>
                    </div>
</section>

```

**createcustomer.js**

```
function copyMailingAddress() {
            if (vm.IsBillingMailing) {
                vm.BillingAddress1 = vm.MailingAddress1;
            }
            else {
                vm.BillingAddress1 = '';
            }
        }

```