None of which work. If I move both the duration.begin and duration.end to the top level, and set the key value(s) to begin and end, then it works fine. But I need them to be values inside an object..
Is there a way around this? Am I just doing something wrong? I looked through the unit tests in the repo and I didn't see anything that would help out.
Hello,
I have two dates that I'm trying to format, they're being pulled from a model (called timeline), which is structured like so:
So, as you can see, the dates are nested inside the
duration
object. I use Handlebars templating to display the dates:The problem I'm having, is the date-formatter doesn't seem to accept a
key
value of an object item. I've tried the following:None of which work. If I move both the
duration.begin
andduration.end
to the top level, and set thekey
value(s) tobegin
andend
, then it works fine. But I need them to be values inside an object..Is there a way around this? Am I just doing something wrong? I looked through the unit tests in the repo and I didn't see anything that would help out.
Thanks!