# Confusion about binding and two-way binding to a data object

**URL:** <https://discourse.aurelia.io/t/confusion-about-binding-and-two-way-binding-to-a-data-object/3845>\
**Category:** Help Requests\
**Created:** [October 21, 2020, 4:12pm UTC](https://discourse.aurelia.io/t/confusion-about-binding-and-two-way-binding-to-a-data-object/3845 "2020-10-21T16:12:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhysshadow](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/rhysshadow/32/1959_2.png) [@rhysshadow](https://discourse.aurelia.io/u/rhysshadow)\
**Post date:** [October 21, 2020, 4:12pm UTC](https://discourse.aurelia.io/t/confusion-about-binding-and-two-way-binding-to-a-data-object/3845/1 "2020-10-21T16:12:30Z")

</div>

I am trying to use binding to update my object in javascript.

I have an object - custExtra - that can have values from the database, OR have values set via the form.

When I set them via the form, I cannot access that value in the javascript.

If I log the value, it’s undefined, but when I log the object custExtra, I can see under observers that there is:

```auto
get GeneralInfo_Timezone
set GeneralInfo_Timezone

```

under the set, I can see a property `currentValue`, and that has my current value. But I can’t access it.

I have tried both `value.two-way` and `value.bind`.

Attached is my gist showing the issue:

> **[Dumber Gist](https://gist.dumber.app/?gist=945e6d93edf1aa1854c40eeebef1b807&open=src%2Fapp.js)**

Thanks

---

<div class="post-metadata">

**Author:** ![elitastic](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitastic/32/1787_2.png) [@elitastic](https://discourse.aurelia.io/u/elitastic)\
**Post date:** [October 22, 2020, 6:05am UTC](https://discourse.aurelia.io/t/confusion-about-binding-and-two-way-binding-to-a-data-object/3845/2 "2020-10-22T06:05:32Z")

</div>

There’s a typo in it! 🙂

GeneralInfo\_Time **z** one vs GeneralInfo\_Time **Z** one

---

<div class="post-metadata">

**Author:** ![rhysshadow](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/rhysshadow/32/1959_2.png) [@rhysshadow](https://discourse.aurelia.io/u/rhysshadow)\
**Post date:** [October 22, 2020, 2:23pm UTC](https://discourse.aurelia.io/t/confusion-about-binding-and-two-way-binding-to-a-data-object/3845/3 "2020-10-22T14:23:30Z")

</div>

I am so totally embarrassed that I did not notice this!

Thank you for pointing it out.
