Created
September 4, 2019 20:26
-
-
Save oleersoy/f5a78bdb2277715fb2b4030a3064e203 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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