Last updated 5 years ago
Was this helpful?
Creates a factory for using RxJS.
(Rx): The root of RxJS
angular.module('example', ['rx']) .controller('AppCtrl', function($scope, rx) { $scope.counter = 0; rx.Observable.interval(1000) .safeApply( $scope, function (x) { $scope.counter = x; }) .subscribe(); });