First: you need to use ng-src
instead of src
as @Cherniv suggested in a comment to your question. Read more here.
Second: you cannot concatenate the URL inside the source attribute for security reasons: you must concatenate the URL in Javascript in a scope variable e.g. fullURL
and then ng-src="{{fullURL}}"
. Read more here.
Third: if Strict Contextual Escaping (SCE) is enabled ? and Angular v1.2 ships with SCE enabled by default ? you need to whitelist the URLs. Read more here and here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…