【发布时间】:2016-07-27 15:39:50
【问题描述】:
我正在尝试学习使用 Angular 2,同时使用 Jade 创建模板并导入转译的 .html 文件。
如何在 Jade 中包含 *ngIf 和 *ngFor?
尝试在 HTML 中实现以下目标:
<div class="container" *ngIf="products && products.length">
我正在 Jade 中尝试以下操作:
div.container(*ngIf='products && products.length')
上面的代码不起作用!帮忙?
【问题讨论】:
标签: html angularjs angular pug angular2-directives