forked from angular/flex-layout
-
-
Notifications
You must be signed in to change notification settings - Fork 2
imgSrc API
Alessio Bianchini edited this page May 6, 2024
·
1 revision
The imgSrc directive is a responsive extension of the HTML src
attribute and can be used on any
tag in the markup
<div>
<img src="default.png" src.xs="xsmall.png"/>
</div>
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
-
Quick Links
-
Documentation
-
Demos
-
StackBlitz Templates
-
Learning FlexBox
-
History
-
Developer Guides
-
Contributing