You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
17
+
Calling $scope.$meteorObject is exactly the same but additionally it will automatically stop the object when the scope is destroyed; therefore this is the recommended method.
19
18
20
19
----
21
20
@@ -25,6 +24,12 @@
25
24
26
25
$scope.$meteorObject(collection, selector, auto)
27
26
27
+
If you documents are saved with objects IDs (and not strings: <ahref="http://docs.meteor.com/#/full/mongo_collection" >see here </a>),
28
+
you should use <code> new Mongo.objectID </code> to retieve the object.
29
+
30
+
$meteor.object (collection, new Meteor.ObjectID (stringId), auto);
0 commit comments