Ionic Error v.context.$implicit is undefined

后端 未结 2 596
野的像风
野的像风 2021-01-21 04:49

I have the error in my code. The error says like this: v.context.$implicit is undefined

The problem is, sometimes it error, and sometimes it doesn’t… Can somebody expla

相关标签:
2条回答
  • 2021-01-21 04:51

    i can't really help if i don't see you're TS code. The same problem occured to me and my mistake was to try to insert a new data in an array like result[i] = data[i] and not like result.push(data[i]) which is actually correct. Hope it helps !

    0 讨论(0)
  • 2021-01-21 05:12

    Most of the time, context.$implicit refer in the template to a variable created with a "let" (like "let time of item.info").

    The rest of the error ("is undefined") is the classic javascript error message for trying to use a undefined value like an object.

    In your case, it probably happen when the variable thisDay is not one of the key of timeinfo. checking the exact line of the error will probably help finding the error in the html.

    0 讨论(0)
提交回复
热议问题