Answers for "Cannot read property 'bypassSecurityTrustResourceUrl'"

0

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) {    }
Posted by: Guest on October-18-2020

Code answers related to "Cannot read property 'bypassSecurityTrustResourceUrl'"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language