X Tutup
Skip to content

ViewContainer does not hook up injectors correctly #2498

@rkirov

Description

@rkirov

When we have

<cmp *ng-if="'true'"></cmp>

The injector creating component cmp is a child of the injector containing NgIf (in fact NgIf is injectable into cmp. The injector tree should match the DOM tree and since the DOM looks like

<template/>
<cmp/>

The cmp injector is a sibling of the ng-if injector.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup