Skip to content

Commit 57e2c14

Browse files
author
Jaroslav Popov
committed
FAQ
1 parent 81e4822 commit 57e2c14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ provided by combination of [NestedReact](https://github.com/Volicon/NestedReact)
2828
This example shows how to achieve pure unidirectional data flow (which is common for Flux applications)
2929
without the usage of `Flux` pattern and excessive implementation efforts.
3030

31+
##FAQ
32+
### What does `editing : ToDo.from( '^props.todos' )` from `todolist.jsx` mean?
33+
Shortly, this reference is a path relative to `this`. Symbol `^` means that we reference something from the upper level. Methods `.from` and `.subsetOf` are serialized as `id` and array of `id` from the model. You work with them same as with simple model or collection. To get this `id` we need a reference to the whole model.
34+
35+
For instance, `someAttr : Model.from( 'items' )` means that in `someAttr` you have one of the models from collection `item`. Common use case: you have a list and you need a reference for selected item.
36+
3137
## Credit
3238

3339
Created by Vlad Balin & [Volicon](http://www.volicon.com/)

0 commit comments

Comments
 (0)