mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 12:35:07 +00:00
missing destroy function added for Faq page.
This commit is contained in:
parent
13a09164ae
commit
fbe9cb83a2
|
@ -1,4 +1,4 @@
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, OnDestroy } from '@angular/core';
|
||||||
import { FormControl } from '@angular/forms';
|
import { FormControl } from '@angular/forms';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
import { FaqService } from './faq.service';
|
import { FaqService } from './faq.service';
|
||||||
|
@ -9,7 +9,7 @@ import { FuseUtils } from '../../../../core/fuseUtils';
|
||||||
templateUrl: './faq.component.html',
|
templateUrl: './faq.component.html',
|
||||||
styleUrls : ['./faq.component.scss']
|
styleUrls : ['./faq.component.scss']
|
||||||
})
|
})
|
||||||
export class FuseFaqComponent implements OnInit
|
export class FuseFaqComponent implements OnInit, OnDestroy
|
||||||
{
|
{
|
||||||
faqs: any;
|
faqs: any;
|
||||||
faqsFiltered: any;
|
faqsFiltered: any;
|
||||||
|
@ -53,4 +53,9 @@ export class FuseFaqComponent implements OnInit
|
||||||
{
|
{
|
||||||
this.step--;
|
this.step--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ngOnDestroy()
|
||||||
|
{
|
||||||
|
this.onFaqsChanged.unsubscribe();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user