membersound membersound - 7 months ago 18
Javascript Question

How to add static string to trusted ng-src?

How can I achieve the following?

<iframe ng-src="{{url | trusted}} + '?staticparam=test'"...>


Result:

Error: $interpolate:noconcat
Multiple Expressions

Answer

Try this

<iframe ng-src="{{url  + '?staticparam=test' | trusted}}"...>

Comments