RXJS BehaviorSubject getValue vs value
There is no difference between the two methods.
Internally the BehaviorSubject
returns the value from getValue()
. So if you are super picky about performance, then calling getValue()
saves you one function call.
get value(): T { return this.getValue(); }