📌  相关文章
📜  无法读取属性'bypassSecurityTrustResourceUrl' - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:36.531000             🧑  作者: Mango

代码示例1
// 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) {    }