如何使用<和比;在角材质中自动完成模板

How to use < and > in angular material autocomplete template?

本文关键字:何使用 和比      更新时间:2023-09-26

我尝试使用jade (pug)模板:

md-item-template
  span(md-highlight-text="vm.parent.newUser") {{item.name}} {{item.surname}} <{{item.email | truncate: 42}}>

我也试过使用这个:

md-item-template
  span(md-highlight-text="vm.parent.newUser") {{item.name}} {{item.surname}} &lt;{{item.email | truncate: 42}}&gt;

,在这两种情况下,我都将&lt;&gt;视为文本

我已经解决了使用unicode 从回答这个问题:所有unicode的开/闭括号的列表?