Here is the date object I am working with:
date = { day: '05' }
When I use this code:
<div>{{date.day}}</div>
It generates the following HTML output:
<div>05</div>
Everything looks good so far.
Now, I want to try this code:
<div>{{date.day}}. {{date.day}}</div>
This should produce the following result:
<div>05. 05</div>
However, instead of the expected output, I am getting an empty string. What could be causing this issue?
I came across an article that uses a similar syntax:
<div>{{i + 1}}. {{fruit}}</div>
I am using Polymer 1.0 and the content is enclosed within a <template>
tag.