Skip to content

Commit c73c9f2

Browse files
committed
Merge pull request #740 from Tallyb/patch-3
add arguments to collection.subscribe()
2 parents 7febfed + 2262dac commit c73c9f2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.docs/angular-meteor/client/content/api/api.AngularMeteorCollection.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ <h4>Parameters</h4>
109109
</tr>
110110
</tbody></table>
111111
<br>
112-
<h3><p><code><span class="pln">subscribe( :subscriptionName );</span></code></p></h3>
112+
<h3><p><code><span class="pln">subscribe( :subscriptionName, :PublisherArguments );</span></code></p></h3>
113113
<br>
114114
A shorter ('syntactic sugar') function for <a href="/api/subscribe">$meteor.subscribe</a>.
115115

116-
Takes only one parameter and doesn't return a promise like <a href="/api/subscribe">$meteor.subscribe</a> does.
116+
Takes the subscription name and its paraemters, but does not return a promise like <a href="/api/subscribe">$meteor.subscribe</a> does.
117117

118118
When called after $scope.meteorCollection, it acts the same but in addition it automatically closes the subscription when the scope is destroyed.
119119

@@ -138,6 +138,13 @@ <h4>Parameters</h4>
138138
</p></td>
139139
<td><a href="" class="label type-hint type-hint-object">Yes</a></td>
140140
</tr>
141+
<tr>
142+
<td>publisherArguments</td>
143+
<td><a href="" class="label type-hint type-hint-object">any</a></td>
144+
<td><p>Optional arguments passed to publisher function on server.</p></td>
145+
<td><a href="" class="label type-hint type-hint-object">No</a></td>
146+
</tr>
147+
141148
</tbody>
142149
</table>
143150
#### Returns

0 commit comments

Comments
 (0)