mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Move angular-rx to rx-angular, match Rx conventions
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user