Skip to content

Instantly share code, notes, and snippets.

@oleersoy
Created September 5, 2019 00:49
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 oleersoy/369a7484e3626b42dc07d5459f8c9fec to your computer and use it in GitHub Desktop.
Save oleersoy/369a7484e3626b42dc07d5459f8c9fec to your computer and use it in GitHub Desktop.
let o1:Observable<boolean> = this.cb1.valueChanges;
let o2:Observable<boolean> = this.cb2.valueChanges;
merge(o1, o2).subscribe( v=>{
this.columnDefinitions[0].hide = this.cb1.value;
this.columnDefinitions[1].hide = this.cb2.value;
console.log(this.columnDefinitions);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment