我的问题在于以下代码。虽然代码现在不起作用。我不想以适当的方式重写它以使其正常工作。
<span ng-if="community = vm.getCommunity(invite.community_id)!=null" grv-icon-comm-type="vm.communityViewHelper.getTypeIcon(community)" ng-class="vm.communityViewHelper.getColorClass(community)"></span>
在上面的代码vm.getCommunity(invite.community_id)
中返回一个null
或community
对象。如果community
返回对象,那么我希望在同一个元素中再调用两个函数,我希望community
在这两个函数上使用最近收到的值。
这只是在消磨我的时间。请帮忙。