Angular - How to fix 'property does not exist on type' error?

后端 未结 5 1607
面向向阳花
面向向阳花 2020-12-29 21:42

I am following this video tutorial (text version of the same). I have followed exactly the same code and I am receiving this error:

error TS2339: Prop

5条回答
  •  北海茫月
    2020-12-29 22:03

    Use a static keyword in the method declaration:

     public static getEmployees(): any []{
    
    }
    

提交回复
热议问题