📅  最后修改于: 2022-03-11 14:48:36.531000             🧑  作者: Mango
// 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) { }