Angular 2 | Directives Argument of type '{}' is not assignable to

后端 未结 4 1582
挽巷
挽巷 2020-12-02 22:53

I am noob with Angular 2. I am doing YouTube tutorials, but every tutorial have the directives: part where i am stuck.

app.component.ts

4条回答
  •  自闭症患者
    2020-12-02 23:21

    WebStorm told me to make the constructor protected. So I did. Caused this problem on a webpack restart. Removing the protected keyword again fixed it.

提交回复
热议问题