// Type definitions for angularjs extensions to rxjs
// Project: http://reactivex.io/
// Definitions by: Mick Delaney
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///
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;
});
});