Skip to content

Upgraded ng1 component $scope never gets $destroy event #7613

@kvantetore

Description

@kvantetore
  • *I'm submitting a ... *
    [x] bug report
  • What is the current behavior?

When an upgraded ng1 component gets disposed the $scope created by the upgradeadapter never gets destroyed.

see https://plnkr.co/edit/pxxtGYBHTnzVzfbrhRhb?p=preview

When the button is clicked, the *ngIf disposes the upgraded ng1Comp component, and I would expect it to write "ng1-comp destroyed" to the console, but the $destroy event on the $scope is never called.

  • Angular version: 2.0.0-beta.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions