Source File Not Found in Angular CLI project

后端 未结 11 1383
臣服心动
臣服心动 2021-01-03 17:50

Hi I have this folders in my project But When I run I get this error

Any idea please?

regards

11条回答
  •  隐瞒了意图╮
    2021-01-03 18:31

    Try to put your empleado.ts file into assets folder and then fetch the file from there.

    As, angular recommends to put all your resources in the assets folder including images/fonts/json etc and access from there.

    PS: assuming this file contains your static content like dummy data etc.

提交回复
热议问题