...\Git\cmd
)class Settings {
constructor(store) {
this.store = store
}
get render() {
console.log('store.template.data:', this.store.template.data)
}
}
class Store {
constructor(data) {
this.template = { data }
this.settings = new Settings(this)
}
}
let r = new Store([1,2,3])
r.settings.render
store.template.data: Array(3) [ 1, 2, 3 ]