Skip to content

*ngIf doesn't work. #16

@vamedina99

Description

@vamedina99

When I put a condition in

*<div ngIf="show" #testOutlet>

public show: boolean.
constructor(
private dynamicComponentLoader: DynamicComponentLoader,
private dialog: MatDialog
) {
this.show = true
}

It does not show anything, is like the component is not created.
Even if I put the condition outside the div in a .

The conditional works fine in angular 6. I'm migrating to angular 8 and here is where it stops working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions