M
M
Mikhail Pautov2015-01-01 13:06:53
JavaScript
Mikhail Pautov, 2015-01-01 13:06:53

Doesn't show up in ember model?

DEPRECATION: The default behavior of shouldReloadAll will change in Ember Data 2.0 to always return false when there is at least one "post" record in the store. If you would like to preserve the current behavior please override shouldReloadAll in your adapter:application and return true. [deprecation id: ds.adapter.should-reload-all-default-behavior]
at Ember.Object.extend.shouldReloadAll ( localhost:4200/assets/vendor.js:71669:15)
at ember$data$lib$system$ store$$Service.extend._fetchAll ( localhost:4200/assets/vendor.js:83794:21)
at ember$data$lib$system$store$$Service.extend.findAll ( localhost:4200/assets/vendor.js :83771:21)
at shouldReload [as model] ( localhost:4200/assets/ember-blog.js:104:15)
at _emberRuntimeSystemObject.default.extend.deserialize ( localhost:4200/assets/vendor.js:39332:19)
at Object.applyHook ( localhost:4200/assets/vendor.js:67417:30)
at Object.HandlerInfo.runSharedModelHook ( localhost :4200/assets/vendor.js:65502:27)
at Object._routerUtils.subclass.getModel ( localhost:4200/assets/vendor.js:65701:19)
at localhost:4200/assets/vendor.js:67285:17
ember.debug.js:5634 DEPRECATION: Using the context switching form of {{each}} is deprecated. Please use the keyword form (`{{#each items as |item|}}`) instead.
at Object.eachHelper ( localhost:4200/assets/vendor.js:18217:13)
at Object._emberMetalMerge.default.compute ( localhost:4200/assets/vendor.js:21799:26)
at Object.Stream.value ( localhost:4200/assets/vendor.js:32687:27)
at Object.invokeHelper ( localhost :4200/assets/vendor.js:19033:34)
at localhost:4200/assets/vendor.js:62539:24
at Object.renderAndCleanup ( localhost:4200/assets/vendor.js:64013:18)
at hostBlock ( localhost :4200/assets/vendor.js:62545:32)
at continueBlock ( localhost:4200/assets/vendor.js:62537:5)
at Object.block ( localhost:4200/assets/vendor.js:62533:5
) in general such errors

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Abdulla Mursalov, 2015-01-02
@provex

Write like this:

{{#each posts as |post|}}
    {{post.title}}
{{/each}}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question