File tree 5 files changed +43
-3
lines changed
.docs/angular-meteor/client/views
5 files changed +43
-3
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ <h2><a href="/api">API</a></h2>
6
6
< ul class ="nav ">
7
7
< li > < a href ="/api/meteorCollection "> $meteor.collection</ a > </ li >
8
8
< li > < a href ="/api/AngularMeteorCollection "> AngularMeteorCollection</ a > </ li >
9
- < li > < a href ="/api/AngularMeteorObject "> AngularMeteorObject</ a > </ li >
10
9
< li > < a href ="/api/meteorObject "> $meteor.object</ a > </ li >
10
+ < li > < a href ="/api/AngularMeteorObject "> AngularMeteorObject</ a > </ li >
11
11
< li > < a href ="/api/subscribe "> $meteor.subscribe</ a > </ li >
12
12
< li > < a href ="/api/methods "> $meteor.call</ a > </ li >
13
13
< li > < a href ="/api/auth "> User Authentication</ a > </ li >
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ <h3><p><code><span class="pln">subscribe( :subscriptionName );</span></code></p>
95
95
96
96
Takes only one parameter and not returns a promise like < a href ="/api/subscribe "> $meteor.subscribe</ a > does.
97
97
98
+ When called after $scope.meteorCollection, it acts the same but in addition it automatically closes the subscription when the scope is destroyed.
99
+
98
100
#### Parameters
99
101
100
102
< table class ="variables-matrix input-arguments ">
Original file line number Diff line number Diff line change @@ -61,6 +61,40 @@ <h3><p><code><span class="pln">reset();</span></code></p></h3>
61
61
62
62
Reset the current value of the object to the one in the server.
63
63
64
+ < br >
65
+ < h3 > < p > < code > < span class ="pln "> subscribe( :subscriptionName );</ span > </ code > </ p > </ h3 >
66
+ < br >
67
+
68
+ A shorten (Syntactic sugar) function for the < a href ="/api/subscribe "> $meteor.subscribe function</ a > .
69
+
70
+ Takes only one parameter and not returns a promise like < a href ="/api/subscribe "> $meteor.subscribe</ a > does.
71
+
72
+ When called after $scope.meteorObject, it acts the same but in addition it automatically closes the subscription when the scope is destroyed.
73
+
74
+ #### Parameters
75
+
76
+ < table class ="variables-matrix input-arguments ">
77
+ < thead >
78
+ < tr >
79
+ < th > Param</ th >
80
+ < th > Type</ th >
81
+ < th > Details</ th >
82
+ < th > Required</ th >
83
+ </ tr >
84
+ </ thead >
85
+ < tbody >
86
+ < tr >
87
+ < td > subscriptionName</ td >
88
+ < td >
89
+ < a href ="" class ="label type-hint type-hint-string "> subscriptionName</ a >
90
+ </ td >
91
+ < td > < p > The subscription name to subscribe to. exactly like the first parameter in $meteor.subscribe service.
92
+ </ p > </ td >
93
+ < td > < a href ="" class ="label type-hint type-hint-object "> Yes</ a > </ td >
94
+ </ tr >
95
+ </ tbody >
96
+ </ table >
97
+
64
98
< br >
65
99
< h3 > < p > < code > < span class ="pln "> getRawObject();</ span > </ code > </ p > </ h3 >
66
100
Original file line number Diff line number Diff line change 12
12
13
13
A service that wraps the [Meteor collections](http://docs.meteor.com/#/full/collections) to enable reactivity within AngularJS.
14
14
15
- Calling $scope.$meteorCollection will automatically stop the collection when the scope is destroyed.
15
+ Calling $scope.$meteorCollection is exactly the same but additionally it will automatically stop the collection when the scope is destroyed.
16
+ Therefor this is the recommended method.
16
17
17
18
----
18
19
Original file line number Diff line number Diff line change 14
14
Finds the first document that matches the selector, as ordered by sort and skip options.
15
15
Wraps [collection.findOne](http://docs.meteor.com/#/full/findone)
16
16
17
- Calling $scope.$meteorObject will automatically stop the object when the scope is destroyed.
17
+ Calling $scope.$meteorObject is exactly the same but additionally it will automatically stop the object when the scope is destroyed.
18
+ Therefor this is the recommended method.
18
19
19
20
----
20
21
80
81
< li > < code > < span class ="pln "> save</ span > </ code > — saves the current value of the object to the server.
81
82
returns a promise with an error in case for an error or a number of successful docs changed in case of success.</ li >
82
83
< li > < code > < span class ="pln "> reset</ span > </ code > — reset the current value of the object to the one in the server.</ li >
84
+ < li > < code > < span class ="pln "> subscribe</ span > </ code > — < a href ="/api/AngularMeteorObject "> Go to reference</ a > </ li >
85
+ < li > < code > < span class ="pln "> getRawObject</ span > </ code > — < a href ="/api/AngularMeteorObject "> Go to reference</ a > </ li >
83
86
</ ul >
84
87
</ td >
85
88
</ tr >
You can’t perform that action at this time.
0 commit comments