Revision 59816
Added by Argiro Kokogiannaki over 3 years ago
showTitle.component.ts | ||
---|---|---|
44 | 44 |
@Input() iconClass:string; |
45 | 45 |
@Input() classNames: string = ""; |
46 | 46 |
|
47 |
sub: any;
|
|
47 |
constructor () {}
|
|
48 | 48 |
|
49 |
constructor (private route: ActivatedRoute) {} |
|
50 |
|
|
51 |
ngOnInit() { |
|
52 |
this.sub = this.route.queryParams.subscribe( |
|
53 |
params => { |
|
54 |
} |
|
55 |
); |
|
56 |
} |
|
57 |
|
|
58 |
ngOnDestroy() { |
|
59 |
this.sub.unsubscribe(); |
|
60 |
} |
|
61 | 49 |
} |
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())