provex
@provex
Front-end Developer

Не выводится в 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)

В общем такие ошибки
  • Вопрос задан
  • 188 просмотров
Решения вопроса 2
Пиши так:
{{#each posts as |post|}}
    {{post.title}}
{{/each}}
Ответ написан
Комментировать
@iDevPro
Программист
DEPRECATION: Using the context switching form of {{each}} is deprecated. Please use the keyword form (`{{#each items as |item|}}`) instead.
Как-то так :)
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы
22 нояб. 2024, в 12:53
25000 руб./за проект
22 нояб. 2024, в 12:20
10000 руб./за проект
22 нояб. 2024, в 11:53
3000 руб./за проект