Skip to content

Commit

Permalink
fix: implement onDestroy
Browse files Browse the repository at this point in the history
  • Loading branch information
udayvunnam committed Jul 19, 2020
1 parent d565be1 commit be01ebc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/xng-breadcrumb/src/lib/breadcrumb.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, ContentChild, Input, OnInit, TemplateRef, ViewEncapsulation } from '@angular/core';
import { Component, ContentChild, Input, OnInit, TemplateRef, ViewEncapsulation, OnDestroy, Output } from '@angular/core';
import { Observable, Subscription } from 'rxjs';
import { BreadcrumbItemDirective } from './breadcrumb-item.directive';
import { BreadcrumbService } from './breadcrumb.service';
Expand All @@ -10,7 +10,7 @@ import { Breadcrumb } from './breadcrumb';
styleUrls: ['./breadcrumb.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class BreadcrumbComponent implements OnInit {
export class BreadcrumbComponent implements OnInit, OnDestroy {
subscription: Subscription;
breadcrumbs: Breadcrumb[];
breadcrumbs$: Observable<Breadcrumb[]>;
Expand Down

0 comments on commit be01ebc

Please sign in to comment.