更新时间:2023-02-16 10:59:11
您需要导入组件,那么您不需要Ember Global。
You need to import the component, then you don't need the Ember Global.
import AuthorNameComponent from '../components/author-name-component'
另一种方法是一个项目的数组,并从那里创建一个作者NameComponent的列表。
Another way is to have an array of items and base the list of AuthorNameComponent from that.
{{#each items as |item|}}
{{author-name name=item.name}}
{{/each}}