From fbe9cb83a2b4693086b6d048977b0213f1f02caf Mon Sep 17 00:00:00 2001 From: mustafahlvc Date: Fri, 13 Oct 2017 15:39:18 +0300 Subject: [PATCH] missing destroy function added for Faq page. --- src/app/main/content/pages/faq/faq.component.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/main/content/pages/faq/faq.component.ts b/src/app/main/content/pages/faq/faq.component.ts index a16121d6..4fb7dc81 100644 --- a/src/app/main/content/pages/faq/faq.component.ts +++ b/src/app/main/content/pages/faq/faq.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, OnInit, OnDestroy } from '@angular/core'; import { FormControl } from '@angular/forms'; import { Subscription } from 'rxjs/Subscription'; import { FaqService } from './faq.service'; @@ -9,7 +9,7 @@ import { FuseUtils } from '../../../../core/fuseUtils'; templateUrl: './faq.component.html', styleUrls : ['./faq.component.scss'] }) -export class FuseFaqComponent implements OnInit +export class FuseFaqComponent implements OnInit, OnDestroy { faqs: any; faqsFiltered: any; @@ -53,4 +53,9 @@ export class FuseFaqComponent implements OnInit { this.step--; } + + ngOnDestroy() + { + this.onFaqsChanged.unsubscribe(); + } }