Revision 59816
Added by Argiro Kokogiannaki over 3 years ago
staticAutoComplete.component.ts | ||
---|---|---|
1 | 1 |
import {Component, ElementRef, Input, Output, EventEmitter, OnChanges, SimpleChange} from '@angular/core'; |
2 |
import {Value} from '../../searchPages/searchUtils/searchHelperClasses.class'; |
|
3 | 2 |
import {ISVocabulariesService} from './ISVocabularies.service'; |
4 | 3 |
import {RefineFieldResultsService} from '../../services/refineFieldResults.service'; |
5 | 4 |
import{EnvProperties} from '../../utils/properties/env-properties'; |
... | ... | |
81 | 80 |
if(this.sub){ |
82 | 81 |
this.sub.unsubscribe(); |
83 | 82 |
} |
83 |
this._vocabulariesService.clearSubscriptions(); |
|
84 | 84 |
} |
85 | 85 |
|
86 | 86 |
ngOnChanges(changes: {[propKey: string]: SimpleChange}) { |
Also available in: Unified diff
[Library|Trunk]
code clean up:
-remove app.* files from library
-remove unused imports, code, files (Old search pages for results, dataproviders, map search page, etc)
-remove Freeguard from modules
-unsubscribe all subscriptions
-Services: configuration, isvocabularies, user management: unsubscribe from app component or the component that uses them (clearSubscriptions())
-Fetchers: unsubscribe from the component that uses them (clearSubscriptions())