Work in progress collection of chainable stores decorators for rescope
new Scope(
{
@asStore // cast the "myData" object to a Store class named "myData"
myData : {
@asRef // bind some scope refs to (myData).state.url
url : "appConfig.myMainDataUrl",
@asRef
params : "appState"
}
@asStore
appConfig : {
myMainDataUrl : "http://some.where/{%appState.lang}.json
}
@asStore
appState : {
lang : 'fr',
currentFilter : {
name : "Par.*"
}
someAction(){
return {
some:"mutations"
}
}
}
},
{
// cfg ...
}
)