missing destroy function added for Faq page.

This commit is contained in:
mustafahlvc 2017-10-13 15:39:18 +03:00
parent 13a09164ae
commit fbe9cb83a2

View File

@ -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();
}
}