Skip to content

Commit 253d5e7

Browse files
committed
(docs): Better examples for CollectionFS, Fixes Urigo#365
1 parent ef4ffbe commit 253d5e7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.docs/angular-meteor/client/views/api/api.collectionfs.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,22 @@
1313
When working with CollectionFS we need to work differently with the `$meteor.collection` because
1414
collectionFS collection is a bit different than `Mongo.Collection`.
1515

16-
To work with collectionFS we send a third argument to `$meteor.collection` which is the CollectionFS
16+
To work with collectionFS we send a **third argument** to `$meteor.collection` which is the `CollectionFS`
1717
collection so that angular-meteor can use it to save and remove files.
1818

1919
----
2020

2121
## Usage
2222

23+
$meteorCollection(Images, false, Images);
24+
25+
// Or in case you want a different query
26+
2327
$meteorCollection(function() {
24-
return Images.find();
28+
return Images.find();
2529
}, false, Images);
2630

27-
// Or
28-
31+
// Or in case you don't want to make change to the collection and just display it
2932
$meteorCollection(Images, false);
3033

3134
----

0 commit comments

Comments
 (0)