Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

Whitespace in let x1 = index causes silent failures. #880

@jimmyff

Description

@jimmyff

I'm using alpha5 + DDC. This directive worked fine with Angular4 + pub.

The directive with selector [gridCell] @Input() never gets called/set when provided with index values from *ngFor. If I hardcode numbers instead of providing x1 & y1 then the @Input() gets successfully called/set.

Component template:

<div *ngFor="let row of getRows(); let y1 = index ">
  <div *ngFor="let col of getCols(y1); let x1 = index ">
    <div [x]="x1" [y]="y1" gridCell></div>
  </div>
</div>

The directive is definitely loaded, I have it printing a message on construct. I also have simplified it so it's a barebones directive, it literally just prints debug on construct and when x or y is set.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions