Awesome
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 ...
}
)
<span class="badge-paypal"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VWKR3TWQ2U2AC" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span>