来自* ngFor outside * ngFor的访问索引

时间:2017-01-21 21:18:43

标签: angular

我在div中有这个* ngFor:

<div class="divRow" *ngFor="let userspec of userspecs; let i = index" id="ChosenCar">

是否可以访问* ngFor之外的i?如果i&lt; = 0,我想隐藏我的表的标题列,但是ngFor在标题列之后的数据行的div上。

由于

1 个答案:

答案 0 :(得分:3)

更方便的是检查Start Youtube upload Python script usage: upload_video.py [--auth_host_name AUTH_HOST_NAME] [--noauth_local_webserver] [--auth_host_port [AUTH_HOST_PORT [AUTH_HOST_PORT ...]]] [--logging_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}] --file FILE [--title TITLE] [--description DESCRIPTION] [--category CATEGORY] [--keywords KEYWORDS] [--privacyStatus {public,private,unlisted}] upload_video.py: error: unrecognized arguments: 20 Jan 19:09:39 EST 2017