How to serve up images in Angular2?

前端 未结 6 1933
遥遥无期
遥遥无期 2020-11-29 20:06

I am trying to put the relative path to one of my images in my assets folder in an image src tag in my Angular2 app. I set a variable in my component to \'fullImagePath\' an

6条回答
  •  眼角桃花
    2020-11-29 20:40

    Just put your images in the assets folder refer them in your html pages or ts files with that link.

提交回复
热议问题