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
If you want to avoid the compilation warning then the dirty fix would be to make
employees: any[];
any instances allow any method to call any method on that object. This will avoid compilation warning but it's not runtime safe.
You need to be careful before using it. If you are sure that the method will be available at runtime then only use it.