Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「DS.MODEL.FIND」に didLoad コールバックを使用したいのですが、以下の Web ページで「DS.MODEL.FIND」メソッドが見つかりません。また、「findQuery」が見つかりません。ありがとうございます。
http://emberjs.com/api/data/classes/DS.Model.html
find同様のメソッドをストアから呼び出す必要があります。
find
たとえば、モデルがある場合App.Post、ルートまたはコントローラーで id 1 のレコードを次のように検索できます。
App.Post
this.store.find('post', 1)
0.13 での方法の代わりに:
App.Post.find(1)
また、ベータ 2 以降多くの修正が行われているため、最新のビルドを使用することをお勧めします。