emberjsを使い始める前に、emberアプリケーションをAPIに接続して、モデルが正常に動作しています。 テンプレートにモデルを表示できますが、どのようにフィルタリングできますか? 例:これは私のモデルです:Ember-cliフィルタリングモデル(名前はhtml選択オプションあり)
import DS from 'ember-data';
export default DS.Model.extend({
placeofdamage: DS.attr('string'),
ees: DS.attr(),
type: DS.belongsTo('type'),
brand: DS.belongsTo('brand')
});
BMWのみ?この方法の場合:
<select class="form-control" id="selectBrand">
{{#each model.brands as |brand|}}
<option>{{brand.name}}</option>
{{/each}}
</select>
ありがとうございます。
ありがとうございました。私は、ember power selectとquery paramsで、構成可能なヘルパーを使用しました。 –