membersound membersound - 2 years ago 133
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 Source

Try this

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download