en_btr_frontend/app/components/lexicon/entry.js

14 lines
333 B
JavaScript

import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
export default class LexiconEntryComponent extends Component {
@service('word-select') selectedWord;
get
currentWordEntry() {
let word = this.selectedWord.current();
console.log(word);
return word.lexicalEntry;
}
}