Skip to content

Instantly share code, notes, and snippets.

@oleersoy
Created September 4, 2019 20:26
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/f5a78bdb2277715fb2b4030a3064e203 to your computer and use it in GitHub Desktop.
Save oleersoy/f5a78bdb2277715fb2b4030a3064e203 to your computer and use it in GitHub Desktop.
ngAfterViewInit() {
let o1:Observable<boolean> = this.cb1.valueChanges;
let o2:Observable<boolean> = this.cb2.valueChanges;
merge(o1, o2).subscribe( v=>{
let cb1Value = this.cb1.value;
let cb2Value = this.cb2.value;
this.cbValues = {
cb1: cb1Value,
cb2: cb2Value
}
console.log(this.cbValues);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment