displaying an embedded image in angular2

后端 未结 2 436
悲&欢浪女
悲&欢浪女 2021-01-11 15:31

I\'m working on a project in angular2, which involves loading an image from a database directly (base64 encoded). In angular1, one could simply load it as follows:



        
2条回答
  •  南方客
    南方客 (楼主)
    2021-01-11 15:43

    Perhaps you could try this:

    
    

    assuming that entry is a property of the component and contains an img attribute.

提交回复
热议问题