Move angular-rx to rx-angular, match Rx conventions

This commit is contained in:
mick delaney
2015-07-03 15:58:31 +01:00
parent 61f9df84ae
commit f1b0c27ff1
2 changed files with 0 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
// Type definitions for angularjs extensions to rxjs
// Project: http://reactivex.io/
// Definitions by: Mick Delaney <https://github.com/mickdelaney/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="rx.angular.d.ts" />
var app = angular.module('testModule');
interface AppScope extends rx.angular.IRxScope {
}
app.controller('Ctrl', ($scope: AppScope) => {
this.inputObservable = $scope.$toObservable('term')
.throttle(400)
.safeApply($scope, (results: any) => {
this.results = results;
});
});