totaljs / framework

Node.js framework
http://www.totaljs.com
Other
4.36k stars 450 forks source link

How do I access data from the view when using _this.$get(_this, _this.callback('view'))? #626

Closed blaasvaer closed 6 years ago

blaasvaer commented 6 years ago

I can't seem to figure out how to access data in the view when using _this.$get ...

function view_something () {
    _this.$get(_this, _this.callback('/timetracker/projects'));
}

Yes, adding a preceding slash, as the path is broken without it.

How is this transferred to the browser?

petersirka commented 6 years ago
function view_something () {
    var options = {};
    this.$get(options, this.callback('/timetracker/projects'));
}