Skip to content

Instantly share code, notes, and snippets.

@michael-mckenna
Created June 5, 2020 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-mckenna/9bd5a7a0cfa8e0be634a27a4fe281d58 to your computer and use it in GitHub Desktop.
Save michael-mckenna/9bd5a7a0cfa8e0be634a27a4fe281d58 to your computer and use it in GitHub Desktop.
Channel List
private channelSubject$ = new BehaviorSubject<Channel[]>([]);
private get channels(): Channel[] {
return this.channelSubject$.getValue();
}
private set channels(val: Channel[]) {
this.channelSubject$.next(val);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment