rx

#

Creates a factory for using RxJS.

Returns

(Rx): The root of RxJS

Example

angular.module('example', ['rx'])
    .controller('AppCtrl', function($scope, rx) {

        $scope.counter = 0;

        rx.Observable.interval(1000)
            .safeApply(
                $scope, 
                function (x) {
                    $scope.counter = x;
                })
            .subscribe();

    });

Location

File:

  • /src/factory.js

Dist:

  • rx.angular.js