Skip to main content

Image Source

The imgSrc directive is a responsive extension of the HTML <img> src attribute and can be used on any <img> tag in the markup

<div>
<img src="default.png" src.xs="xsmall.png" />
</div>

Image Source Options​

imgSrc takes one string argument, and alters its host's src attribute as necessary when breakpoints are activated. The initial value will be used as the default and fallback when a responsive alias is not defined