Ionic 2 + Angular 2: Images prepended with 'unsafe:' therefore not displaying even though they're fine

后端 未结 4 1338

For some reason, some of my images are being prepended with \'unsafe:\', which is causing them not to be rendered.

Q) Why is this happening an

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-10 11:07

    in angular 5.2.6

    class:

    import { DomSanitizer } from '@angular/platform-browser';
    constructor(public _DomSanitizationService: DomSanitizer ) {}
    

    Template

    
    

提交回复
热议问题