Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
enyo.kind({
name: "MyApp.Session",
kind: 'enyo.Controller',
currentUser: null,
published: {
userId: null,
token: null
}
});
enyo.kind({
name: "MyApp.Models.User",
kind: "MyApp.Model",
url: "/users",
attributes: {
id : null,
name: '',
first_name: '',
last_name: '',
email: ''
}
})
enyo.kind({
name: "MyApp.MainView",
kind: "FittableRows",
fit: true,
events: {
onAddRecord: ""
},
bindings: [{
from: ".app.$.session.currentUser.name", // Doesn't work -____-
to: ".toolbar.content"
}],
components: [{
name: "toolbar",
kind: "onyx.Toolbar",
content: '###'
}
//...
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.