使用Polymer 2.0,用什么干净的方法来设置dom重复项模板的参数?
用法:
<custom-component>
<template id="item-template">
[[item]]
</template>
</custom-component>
Run Code Online (Sandbox Code Playgroud)
CustomComponent:
<dom-module id="custom-component">
<template>
<template is="dom-repeat" items="[[foo]]" id="repeater">
<!-- Parameterized template -->
</template>
</template>
<!-- scripts... -->
</dom-module>
Run Code Online (Sandbox Code Playgroud)
我找不到有关Polymer 2.0的清晰文档来实现此目的。
>dotnet --info
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.0 (tested with 1.0.1 as well)
Run Code Online (Sandbox Code Playgroud)
重现步骤:
dotnet build结果:
C:\ Program Files \ dotnet \ sdk \ 1.0.0 \ Microsoft.Common.CurrentVersion.targets(4072,5):错误MSB3030:无法复制文件 “ obj \ Debug \ fr \ ProjectName.resources.dll”,因为它没找到。 [C:\ Projects \ SolutionName \ ProjectName \ ProjectName.csproj]
我在此上浪费了太多时间(挖掘/研究/ git问题)。那是个错误吗?
请注意,使用一个文件Foo.resx没问题。(但我需要多种文化)
.net ×1
build ×1
dom-repeat ×1
javascript ×1
jetty ×1
polymer-2.x ×1
resources ×1
resx ×1
timeout ×1
websocket ×1