From 5c11852cd6bc4f52a674f7a67c4db0ba454e076a Mon Sep 17 00:00:00 2001 From: sigita42 Date: Sun, 10 May 2015 15:41:05 +0200 Subject: [PATCH] Subscribe should work also on AngularMeteorObject --- angular-meteor/angular-meteor.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/angular-meteor/angular-meteor.d.ts b/angular-meteor/angular-meteor.d.ts index 89ae4bc9f9..b3f520ac5b 100644 --- a/angular-meteor/angular-meteor.d.ts +++ b/angular-meteor/angular-meteor.d.ts @@ -277,6 +277,14 @@ declare module angular.meteor { * The returned object is then safe to use as a parameter for method calls, or anywhere else where the data needs to be converted to JSON. */ getRawObject(): T; + + /** + * A shorten (Syntactic sugar) function for the $meteor.subscribe function. + * Takes only one parameter and not returns a promise like $meteor.subscribe does. + * + * @param subscriptionName - The subscription name to subscribe to. Exactly like the first parameter in $meteor.subscribe service. + */ + subscribe(subscriptionName:string): AngularMeteorObject; } /**