<ul dir="auto">
<li>*<em>I'm submitting a ... *</em><br>
[x] bug report</li>
<li><strong>What is the current behavior?</strong></li>
</ul>
<p dir="auto">When an upgraded ng1 component gets disposed the $scope created by the upgradeadapter never gets destroyed.</p>
<p dir="auto">see <a href="https://plnkr.co/edit/pxxtGYBHTnzVzfbrhRhb?p=preview" rel="nofollow">https://plnkr.co/edit/pxxtGYBHTnzVzfbrhRhb?p=preview</a></p>
<p dir="auto">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.</p>
<ul dir="auto">
<li>Angular version: 2.0.0-beta.9</li>
</ul>
<p dir="auto">Repro: <a href="http://plnkr.co/edit/s0FLVw1fIbG2mat954hu?p=preview" rel="nofollow">http://plnkr.co/edit/s0FLVw1fIbG2mat954hu?p=preview</a></p>
<p dir="auto">OnInit is called, but OnDestroy is not called when angular1 destroys an angular2 component via <code class="notranslate">ng-if</code></p>