Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with a *ngif div #13

Open
D4rkness opened this issue Mar 23, 2018 · 1 comment
Open

Doesn't work with a *ngif div #13

D4rkness opened this issue Mar 23, 2018 · 1 comment

Comments

@D4rkness
Copy link

D4rkness commented Mar 23, 2018

So i tried this code:

`<ko-layer #howerlayer>

  <div *ngFor="let layer of layers">

      <ko-group>
        <div *ngFor="let run of [0,1,2,3]">
          <ko-line [config]="generateLineConfig(layer, run)"></ko-line>
        </div>
        <ko-rect [config]="generateRectangleConfig(layer)"
                 (click)="mouseSingleClickEvenet($event)"
                 (mouseout)="mouseOutOfObject($event)"
                 (mousemove)="mouseInObject($event)">
        </ko-rect>
      </ko-group>

  <div *ngIf="someDataThatCanBeNull">
    <ko-rect [config]="genereateRectangleConfig"></ko-rect>
  </div>

  </div>

</ko-layer> `

The Problem is here, when the part with the ngif statement is not null it should appear, but it doesen't every time, when it gets redrawn it shows, that the data gets loaded but it doesn't appear.

Could you fix this or maybe help me out ?

br
D4rkn

@coccor
Copy link

coccor commented Apr 3, 2018

Is this still happening if you remove the unnecessary divs ?
<ko-line *ngFor="let run of [0,1,2,3]" [config]="generateLineConfig(layer, run)"></ko-line>
and
<ko-rect *ngIf="someDataThatCanBeNull" [config]="genereateRectangleConfig"></ko-rect>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants