Understanding Polymer data-binding and HTML tags

后端 未结 1 1080
南方客
南方客 2021-01-28 09:36

I\'m new to Polymer and while testing data-binding, I discover that I have to encapsulate double-mustache expressions within HTML tags (for example {{var}}<

相关标签:
1条回答
  • 2021-01-28 10:13

    According to the docs :

    The binding annotation must currently span the entire content of the tag.

    This means you currently have to wrap your bindings in a tag as you did in this example:

    This is <b>{{owner}}</b>'s name-tag element.

    I expect in the future this will be changed so that you don't have to wrap bindings in a tag.

    0 讨论(0)
提交回复
热议问题