これは私のrouter.jsコードです。コントローラember.jsのパラメータにアクセスする方法
this.route('contact',{'path': '/contact/:chat_id'});
これは私のroute.jsコードです。
model(params) {
return this.store.findRecord("chat", params.chat_id)
},
これは私のcontroller.jsコードです。このように使用できます。それはnull値としてエラーを示します 私を助けてください。どのようにあなたのroute.js、コントローラ
recordChat: function() {
var chat = this.get(params.chat_id)
Ember.RSVP.hash({
offer_id: chat,
})
}
。?あなたは必要な情報を提供するようにあなたの投稿を更新することを検討する必要があります。 – nyedidikeke
null値を表示 –
'recordChat'関数から何も返さない。あなたはその関数をいつ呼びますか? – Lux