Set Image path on ASP.NET Core + Angular 2 template for Visual Studio

后端 未结 5 1042
误落风尘
误落风尘 2020-12-16 03:43

I need to add a static image as shown below.Can you tell me why I cannot show the image on home page as shown below ? i.e. It\'s not working.

Here I\'m using this AS

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 04:14

    Include image folder in angular-cli.json under assets node like below

     "assets": [
            "assets",
            "favicon.ico",
            "fonts",
            "images"
          ],
    

提交回复
热议问题