Project

General

Profile

« Previous | Next » 

Revision 57587

[Library |Trunk]

use component: Add check for unsubscribe
Session: when remove user, remove User cookie again

View differences:

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