Jade中的掩码括号 - AngularJS语法

时间:2014-08-13 08:54:55

标签: angularjs pug

如何在翡翠中写这个?特别是.get()让我有问题。

<li ng-repeat="breadcrumb in breadcrumbs.get() track by breadcrumb.path" ng-class="{ active: $last }"></li>

示例来自: https://github.com/ianwalter/ng-breadcrumbs

谢谢!

1 个答案:

答案 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 }")