如何在翡翠中写这个?特别是.get()让我有问题。
<li ng-repeat="breadcrumb in breadcrumbs.get() track by breadcrumb.path" ng-class="{ active: $last }"></li>
示例来自: https://github.com/ianwalter/ng-breadcrumbs
谢谢!
答案 0 :(得分:1)
在Jade这一行
<li ng-repeat="breadcrumb in breadcrumbs.get() track by breadcrumb.path" ng-class="{ active: $last }"></li>
将成为
li(ng-repeat="breadcrumb in breadcrumbs.get() track by breadcrumb.path", ng-class="{ active: $last }")