Reactive-Extensions / rx.angular.js

AngularJS Bindings for RxJS
Other
827 stars 89 forks source link

$toObservable inconsistency #106

Closed wmaurer closed 9 years ago

wmaurer commented 9 years ago

When I use $scope as injected into a controller, $toObservable gives me an Rx.Observable<T>.

However I have found that when i use the $toObservable on the scope passed into the link function of a directive, I get a different observable, namely an object with oldValue and newValue properties: { oldValue: T, newValue T}.

I feel that $toObservable should work consistently in these two situations. What do you think?

wmaurer commented 9 years ago

Apologies, now i can't seem to replicate this issue. My bad.