rescope-spells
v16.1.0
Published
Work in progress collection of chainable stores decorators for rescope
Downloads
35
Readme
rescope-spells
What ?
Work in progress collection of chainable stores decorators for rescope
Examples ?
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 ...
}
)