Polymer 属性 如果不在标签中则无法工作

Polymer property not working if not in tag

我正在努力 Polymer 并且正在注视 this tutorial

我遇到的问题是 Declary a property 部分,如果我不将模板 {{owner}} 放在 spanb 中,它不会'得到解释。 所以我的问题基本上是这是否有效

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

为什么不是这个?

This is {{owner}}'s configurable-name-tag element

注意缺少的<b>

Plunk

这是因为与 v0.5 不同,Polymer v1 不支持字符串连接。

绑定注释当前必须跨越标签的全部内容,您可以在官方文档中阅读:https://www.polymer-project.org/1.0/docs/devguide/data-binding.html#binding-to-text-content