Pug 如何让按钮显示在玉表内?

Pug 如何让按钮显示在玉表内?,pug,Pug,我正在尝试将html页面转换为Jade。我无法在td中显示一些按钮。(正在使用Angular应用程序。) 没有按钮的桌子显示得很好 tr(ng-repeat='local in locals | orderBy:predicate | filter:query') td {{local.points}} td {{local.lastname}} td {{local.firstname}} td {{local.zip}} 带有按钮的表无法编译 tr(ng-repeat='

我正在尝试将html页面转换为Jade。我无法在td中显示一些按钮。(正在使用Angular应用程序。)

没有按钮的桌子显示得很好

tr(ng-repeat='local in locals |  orderBy:predicate | filter:query')
  td {{local.points}}
  td {{local.lastname}}
  td {{local.firstname}}
  td {{local.zip}}
带有按钮的表无法编译

tr(ng-repeat='local in locals |  orderBy:predicate | filter:query')
  td
    button(ng-click='local.points = local.points + 10')
    button(ng-click='local.points = local.points - 10') {{local.points}}
  td {{local.lastname}}
  td {{local.firstname}}
  td {{local.zip}}

我明白了。Jade需要按钮的值。这对那个td有效

td
  button( ng-click='local.points = local.points + 10') Up
  button(ng-click='local.points = local.points - 10') Dn
  {{local.points}}