Angular$viewValue避免某些值



uib-typeahead="school as school.en for school in mod.schools | filter:$viewValue | limitTo:100"

我想在用户键入时列出所有值并过滤匹配的字符串。上面的表达式返回的值大约为30。

但如果删除filter:$viewValue,则所有值都将列出,但无法筛选值。

uib-typeahead="school as airport.en for school in mod.schools | limitTo:100"

你知道我如何过滤并列出所有值吗?

这是排序的。这行没有问题,它正确地返回了所有值和筛选器。

uib-typeahead="school as school.en for school in mod.schools | filter:$viewValue | limitTo:100"

刚刚从输入标签属性的行下删除

typeahead-focus

相关内容

  • 没有找到相关文章

最新更新