I am injecting unsanitized html into a component.  When the route param changes, I go to the database and grab some new html and put it in the component.  But when I do this, I get the message SafeValue must use [property]=binding:
My guess is that it is caused because the route is changing. My routerlink generation looks like this:
<li routerLinkActive="active" *ngFor="let form of translationData.caseForms" ><a [routerLink]="[currentTransCode, 'form',form.ClaimTemplateID]" class="navbar-link">{{form.WebsiteLinkTitle}}</a></li>
Here are steps:
- Go to http://localhost:4300/us/form/5406 - NO error 
- Go to http://localhost:4300/us/form/6411 - Error 
form.component.html:
<div class="container" *ngIf="!loading">
  <div *ngIf="!isAuthenticated">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title">
          <strong>Login </strong>
        </h3>
      </div>
      <div class="panel-body">
        <div role="form">
          <div class="form-group">
            <label for="exampleInputEmail1">{{token1Label}}</label>
            <input type="email" class="form-control" id="exampleInputEmail1" required placeholder="Enter {{token1Label}}" #token1>
          </div>
          <div class="form-group">
            <label for="exampleInputPassword1">{{token2Label}}
            </label>
            <input type="password" class="form-control" id="exampleInputPassword1" required placeholder="Enter {{token2Label}}" #token2>
          </div>
          <button type="button" (click)="login(token1,token2)" class="btn btn-sm btn-primary">Login</button>
        </div>
      </div>
    </div>
  </div>
  <div *ngIf="isAuthenticated">
    <div class="page-header paddingpushdown">
      <h2>{{formTitle}}</h2>
    </div>
    <form [formGroup]="form" (ngSubmit)="submit(model)">
      <formly-form [model]="model" [fields]="fields" [options]="options" [form]="form">
        <button type="submit" class="btn btn-default">Submit</button>
      </formly-form>
    </form>
  </div>
</div>
Wrapping unsanitized html:

 
     
    
SIGN HERE PLEASE - THIS IS VERY IMPORTANT
'`, it works fine, but when I get it from the database, it then shows the error. – xaisoft Apr 19 '18 at 18:46