Skip to content

EmbeddedView destroy issue #13062

@pkozlowski-opensource

Description

@pkozlowski-opensource

As discussed with @tbosch there seems to be an issue with internal data structures when:

  • a component is created dynamically
  • an EmbeddedView is created dynamically (from TemplateRef) and its nodes are used to fill in a "hole" in a component

Given the above conditions it is not possible to properly destroy an EmbeddedView as the "Cannot read property 'indexOf' of undefined" error is thrown from AppView detatch method. Here is a plunker that illustrates this: http://plnkr.co/edit/XOVSN1BsimR7oToFO3Du?p=preview (open a modal, close it and see the error in the console).

Angular version 2.3.0-beta.1 (pinned in the above plunker)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions