I'm getting a sanitizer warning img src, I'm trying to use the angular sanitizer service, but I get:
Got interpolation ({{}}) where expression was expected
I tried:
<img [src]="sanitizer.bypassSecurityTrustResourceUrl({{m.foto}})">
import { DomSanitizer } from '@angular/platform-browser';
constructor(
public sanitizer: DomSanitizer
) {}
How can I use sanitizer with interpolation? because my target is an item being iterated in ngfor