rx
# Ⓢ
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();
});