SafeValue must use [property]=binding although I'm already using property binding
问题 I have following HTML with a property binding: <div [innerHtml]="logOutput"></div> In my component I add now some content with this line of code this.logOutput = this.sanitizer.bypassSecurityTrustHtml( this.logOutput + otpStr ); But nevertheless I get this error "SafeValue must use [property]=binding". Why I get this error? I'm already using property binding! I'm using Angular 5. Edit: I tried out using a custom pipe inside the HTML and it worked fine, but I want a solution without pipes.