Reactive-Extensions / rx.angular.js

AngularJS Bindings for RxJS
Other
827 stars 89 forks source link

Binding is delayed sample code. #135

Closed albatrosary closed 8 years ago

albatrosary commented 8 years ago

Since the sample code are binding in response, it is not reflected in the search immediately after the screen.

This may be describing the apply.In particular

before

.subscribe(function(results) {
  this.results = results;
}.bind(this));

after

.subscribe(function(results) {
  $scope.$apply(this.results = results);
}.bind(this));

I will send a pull request.

Thank you!