mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-27 11:40:08 +08:00
17 lines
416 B
TypeScript
17 lines
416 B
TypeScript
/// <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;
|
|
});
|
|
|
|
});
|