Cannot read property 'bypassSecurityTrustResourceUrl' code example
Example: Cannot read property 'bypassSecurityTrustResourceUrl'
// This error is not about what you pass as an argument,
// but about the sanitizer.
// You need to make sure to import and declare the sanitizer
// in your constructor like this:
import { DomSanitizer} from '@angular/platform-browser';
...
constructor(private sanitizer:DomSanitizer) { }