<section layout="row" layout-align = "center center" layout-padding>
<div flex = "50" flex-xs = "100">
<jb-input layout="column" jb-input-type="text" jb-
model="gSearchCtrl.gSearchQuery" jb-
change="gSearchCtrl.onInputModelChange" jb-placeholder="Search profiles,
doubles teams, games, matches, tournaments..." jb-autofocus="true"></jb-
input>
</div>
- 如何转换该占位符
答案 0 :(得分:0)
如果我理解正确,请在输入内:
<jb-input layout="column" jb-input-type="text" jb-
model="gSearchCtrl.gSearchQuery" jb-
change="gSearchCtrl.onInputModelChange" jb-placeholder="{{ 'SEARCH_PLACEHOLDER' | translate }}" jb-autofocus="true"></jb-
input>
然后您将在翻译参考文献中定义索引'SEARCH_PLACEHOLDER'。