Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
/ rescope-spells Public archive

Work in progress collection of chainable stores decorators for rescope

License

Notifications You must be signed in to change notification settings

rscopes/rescope-spells

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rescope-spells

Build Status NPM Version contributions welcome

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 ...
    }
)

HitCount PayPal donate button

About

Work in progress collection of chainable stores decorators for rescope

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published