typeError: Cannot read property 'tigerStart' of undefined

前端 未结 4 1911
春和景丽
春和景丽 2021-01-18 14:47
  • I am new to typescript and angular js.
  • I tried to include another component code into my code.
  • which is baby.js code into my code
  • but I am g
4条回答
  •  执念已碎
    2021-01-18 15:22

    sky might be defined, but you are not assigning it a value before you are accessing it. Where are you assigning a value sky?

    It is unclear if you mean that you are using Angular or if you mean you are using AngularJS. In the tags you have used the Angular tag. In the description you have mentioned AngularJS. These are two different things. You are also using $ which I assume is jquery. I suggest avoiding mixing jQuery with Angular or AngularJS. It will make your learning process much simpler.

提交回复
热议问题