我正在开发有关离子的应用程序,并遇到以下问题。我无法解决。
MyApp.html:15 ERROR Error: Error trying to diff '[object Object]'. Only arrays and iterables are allowed
at DefaultIterableDiffer.diff (core.es5.js:7083)
at NgForOf.ngDoCheck (common.es5.js:1699)
at checkAndUpdateDirectiveInline (core.es5.js:10818)
at checkAndUpdateNodeInline (core.es5.js:12238)
at checkAndUpdateNode (core.es5.js:12177)
at debugCheckAndUpdateNode (core.es5.js:12880)
at debugCheckDirectivesFn (core.es5.js:12821)
at Object.eval [as updateDirectives] (MyApp.html:16)
at Object.debugUpdateDirectives [as updateDirectives] (core.es5.js:12806)
at checkAndUpdateView (core.es5.js:12144)
以下是问题的屏幕截图: https://1drv.ms/u/s!ApO52Imsl0YIg_8G3pvovhPPr4wF0A
请帮助。
问候 阿曼
答案 0 :(得分:0)
您在对象中使用迭代的此错误...仅在 array
中执行离子离子迭代