2017-08-29 6 views
0

My Ember.jsには、エンドユーザーがページを構成するために使用できる多くのコンポーネントがあります。 Emberアプリケーションに存在するコンポーネントの動的リストを表示するにはどうすればよいですか?Ember.jsアプリケーションにリストコンポーネントを表示するにはどうすればよいですか?

登録されたコンポーネントがEmber.Applicationオブジェクトのどこかにあると思いますが、私が使用できるものを見つけるのが苦労しています。

答えて

0
# in the route 
import computed from 'ember-computed'; 
import getOwner from 'ember-owner/get'; 

... 
{ 
    components: computed(function() { 
    return getOwner(this).lookup('container-debug-adapter:main') 
     .catalogEntriesByType('component') 
     .filter(componentName => componentName.includes('composables')) 
    }) 
} 
関連する問題