Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

Use of AngularJS markup in URL-valued attribute #335

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Use of AngularJS markup in URL-valued attribute #335

wants to merge 1 commit into from

Conversation

matbrgz
Copy link

@matbrgz matbrgz commented Apr 18, 2019

Using AngularJS markup in an HTML attribute that references a URL (such as 'href' or 'src') may cause the browser to send a request with an invalid URL.

Using AngularJS markup (that is, AngularJS expressions enclosed in double curly braces) in HTML attributes that reference URLs is not recommended: the browser may attempt to fetch the URL before the AngularJS compiler evaluates the markup, resulting in a request for an invalid URL.

While this is not a serious problem, it can degrade user experience, since the page may, for example, display broken image links while loading.

Using AngularJS markup in an HTML attribute that references a URL (such as 'href' or 'src') may cause the browser to send a request with an invalid URL.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant