Revision 57587
Added by Argiro Kokogiannaki over 4 years ago
user.component.ts | ||
---|---|---|
65 | 65 |
|
66 | 66 |
|
67 | 67 |
ngOnDestroy() { |
68 |
this.sub.unsubscribe(); |
|
68 |
if(this.sub) { |
|
69 |
this.sub.unsubscribe(); |
|
70 |
} |
|
69 | 71 |
if (this.sublogin) { |
70 | 72 |
this.sublogin.unsubscribe(); |
71 | 73 |
} |
Also available in: Unified diff
[Library |Trunk]
use component: Add check for unsubscribe
Session: when remove user, remove User cookie again