Skip to content

Commit 5c11852

Browse files
committed
Subscribe should work also on AngularMeteorObject
1 parent 28666dd commit 5c11852

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

angular-meteor/angular-meteor.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,14 @@ declare module angular.meteor {
277277
* 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.
278278
*/
279279
getRawObject(): T;
280+
281+
/**
282+
* A shorten (Syntactic sugar) function for the $meteor.subscribe function.
283+
* Takes only one parameter and not returns a promise like $meteor.subscribe does.
284+
*
285+
* @param subscriptionName - The subscription name to subscribe to. Exactly like the first parameter in $meteor.subscribe service.
286+
*/
287+
subscribe(subscriptionName:string): AngularMeteorObject<T>;
280288
}
281289

282290
/**

0 commit comments

Comments
 (0)