NuclearJS Vue Mixin
VueJS mixin to provide effortless syncing of ViewModel data with a Nuclear Reactor
Usage
var Getter = Gettervar ReactorMixin = var reactor = var vm = mixins: { // vm.user always stays in sync with reactor.get('user') user: 'User' // reactor.get(['projects', 123]) project: 'projects' 123 // can pass a Getter to transform a value currentPage: } { // also provides a $sync(vmProp, getter) method for post created bindings this }