formatjs / handlebars-intl

Handlebars helpers for internationalization.
http://formatjs.io/handlebars/
Other
265 stars 28 forks source link

How to change value after load ? #73

Open JerryBels opened 8 years ago

JerryBels commented 8 years ago

Hello guys,

I'm trying to change the value displayed to the user after he changed some inputs. Specifically, a date input is changed, and then the date displayed under it should change as well.

The date under it uses the helper formatTime to set the date to the right format for user, according to his language and everything. But I don't succeed into changing it. If I try to call in my JS :

Handlebars.helpers.formatTime(values.reminderDate + "T" + values.reminderTime + ":00")

it gives me the error

Uncaught TypeError: Cannot read property 'data' of undefined

So I thought about using a partial or even a dedicated template just for it, but it seems overkill... Am I missing something ?

Thanks a lot ahead !

JerryBels commented 8 years ago

bump

JerryBels commented 7 years ago

bump