Ionic Error v.context.$implicit is undefined

后端 未结 2 637
野的像风
野的像风 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 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.

提交回复
热议问题