Reputation: 21
For example, with the following code, I can retrieve a value for "leaf" c
from a Falcor model
var model = new falcor.Model({ cache: { a: { b: { c: 'hi!'}}} })
model.getValue('a.b.c').then(val => console.log(val));
However, I'm interested in how to retrieve "node" b
, i.e. so that the resulting json is { c: 'hi!' }
.
Any help appreciated.
Upvotes: 2
Views: 118