DefinitelyTyped/types/rx-angular/rx-angular-tests.ts
2017-03-24 14:27:52 -07:00

19 lines
554 B
TypeScript

// Type definitions for angularjs extensions to rxjs
// Project: http://reactivex.io/
// Definitions by: Mick Delaney <https://github.com/mickdelaney/>
// 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')
.safeApply($scope, (results: any) => {
this.results = results;
});
});