mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-05 12:20:07 +08:00
Adding angular-rx
This commit is contained in:
1 parent
6f04d25ad3
commit
6a7dd89393
2 files changed
+16
No files matched your search
@@ -0,0 +1,16 @@
|
||||
/// <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