12
我得到了我里面输入以下错误:SafeValue必须使用[属性] =结合:
SafeValue must use [property]=binding: http://www.myurl.com (see http://g.co/ng/security#xss)
我确实在我的组件:
this.myInputURL = this.sanitizer.bypassSecurityTrustUrl('http://www.myurl.com');
而且在我的模板:
Share URL: <md-input [value]="myInputURL" type="text"></md-input>
怎么了?
你想仅在输入控件中显示它吗?它说,它不安全的注入DOM – micronyks
嗯..我没有看到任何其他选项允许复制链接URL快速和简单 – TheUnreal