I have a JSTree tree schema that I've implemented in an Ember app. I'd like to break it out into a component, but I'm kind of stuck.
Currently I have this controller, which I have moved wholesale into a component in the directory with the rest of my components called tree-schema.js:
export default Ember.Controller.extend({
schema: Ember.computed.alias('model'),
themes: null,
treeSchema: Ember.computed('schema', function treeSchema() {
// treeSchema config
}),
});
But when I try to reference the component's treeSchema attribute in my emblem template it never hits this if block:
if treeSchema
.integrations-list
tree-schema [
/ tree-schema attrs
]
What am I missing?
Aucun commentaire:
Enregistrer un commentaire