<div ng-click="changeChatThread(thread, true)" class="item ui three column grid thread_item ng-scope active-thread" ng-class="{'active-thread' : selectedThread === thread.chat_id}" ng-repeat="thread in threads | orderBy:'-last_ts' | filter : globalSearch track by $index">
<div class="three wide column thread_image">
<div class="ui tiny image">
<img ng-src="img/avatar.png" src="img/avatar.png">
</div>
</div>
<div class="three wide column thread_meta">
<div class="ui label ng-hide" ng-show="thread.count > 0">
<p class="ng-binding">0</p>
</div>
<div class="thread_attachment_icon ng-hide" ng-show="thread.last_message.attachments.length">
<img ng-src="img/mainbox/assets/Attachment Icon.png" class="message_attachment" src="img/mainbox/assets/Attachment Icon.png">
</div>
<div class="thread_last_ts">
<p ng-hide="thread.typing_message.length" class="ng-binding">6:29 PM</p>
<p class="typing_message ng-binding ng-hide" ng-show="thread.typing_message.length"></p>
</div>
</div>
</div>
我想通过ng repeat元素得到Xpath。 请帮我这个
答案 0 :(得分:0)
如果您使用by.exactRepeater()
定位器,它将删除所有扩展转发器语法部分 - 排序,过滤器和索引,以便您可以执行以下操作:
class UserProfile(models.Model):
user = models.OneToOneField(User,unique=False)
department = models.CharField(max_length=50, choices=DEPARTMENT_CHOICES,default='technology')
role = models.CharField(max_length=50, choices=ROLE_CHOICES,default='manager')