如何实现以下目标?
<iframe ng-src="{{url | trusted}} + '?staticparam=test'"...>
结果:
Error: $interpolate:noconcat
Multiple Expressions
答案 0 :(得分:1)
试试这个
<iframe ng-src="{{url + '?staticparam=test' | trusted}}"...>
&#13;
答案 1 :(得分:1)
ng-init可能有助于追加:
<iframe ng-src="{{url | trusted}}" ng-init = "url = url + '?staticparam=test'">