Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
justinjung04 committed Jun 16, 2016
1 parent 1baef38 commit e8acd48
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ Treeful.subscribe('todos', callbackTodos);
//callbackTodos will get called when the data in 'todos' or 'filter' changes
```

Get and set data data by calling:
Get and set data by calling:
```js
let oldFilter = Treeful.getData('filter'); //oldFilter = 'all'
let newFilter = 'completed';
Treeful.setData('filter', newFilter);
let oldData = Treeful.getData('filter'); //oldData = 'all'
Treeful.setData('filter', 'completed');
//Node 'filter' is updated, and it is a child of 'todos' that is subscribed to callbackTodos.
```

Expand Down

0 comments on commit e8acd48

Please sign in to comment.