我如何根据 Angular 中的简单模型相关查询显示特定内容?

How can I show a certain content in dependence of a simple model-related-query in Angular?

如何在 Angular 中实现以下情况?

<div show if {{model.roles.length}} > 1 >

    show this content

</div>

在您的上下文中使用 ng-ifng-show

<div ng-if="model.roles.length > 1">

   show this content

</div>
<div  ng-show="model.roles.length > 1" >
 show the content
</div>