.json ファイルからデータを取得する Ember オブジェクトを定義しました。
Ember 配列コントローラーを使用して、Ember オブジェクトの一部として定義された配列から画像を出力するために、ember と x ハンドルバーを使用しています。
配列は次のように定義されます。
{
"gallery_small": ["data/images/gallery_01_small.jpg", "data/images/gallery_02_small.jpg"]
}
そして、私の現在のhtmlは次のとおりです。
{{#each content.gallery_small}}
{{#collection contentBinding="Application.projectdetailController"}}
{{content.gallery_small}}
{{/collection}}
{{/each}}
現在出力されているのは
data/images/gallery_01_small.jpg,data/images/gallery_02_small.jpg
data/images/gallery_01_small.jpg,data/images/gallery_02_small.jpg
私が欲しいのは
data/images/gallery_01_small.jpg
data/images/gallery_02_small.jpg
どうすればこれを手に入れることができますか?
どうもありがとうございました!