0

用jade-lang模板化一个angular2应用程序我收到以下错误。

“分配中的左侧无效”

没有 event-bing (click)="..." 一切正常。

p Some Contacts List Page
  md-nav-list
    a( (click)="gotoContact()" *ngFor="let contact of contacts; let i = index" )
        md-list-item {{i+1}} {{contact.nameFirst}}{{contact.nameFam}}

有人提示如何解决或解决方法吗?

这里的错误: 在此处输入图像描述

4

1 回答 1

0

加引号是一个解决方案:

'(点击)'="gotoContact(联系人)"

也许有人会遇到这个。

于 2016-09-01T16:09:32.690 回答