YouTip LogoYouTip

Ng Ng Srcset

AngularJS ng-srcset Directive

AngularJS Tutorial

AngularJS TutorialAngularJS IntroductionAngularJS ExpressionsAngularJS DirectivesAngularJS ModelAngularJS ScopeAngularJS ControllersAngularJS FiltersAngularJS ServiceAngularJS HttpAngularJS SelectAngularJS TablesAngularJS SQLAngularJS HTML DOMAngularJS EventsAngularJS ModulesAngularJS FormsAngularJS Input ValidationAngularJS APIAngularJS BootstrapAngularJS IncludesAngularJS AnimationAngularJS Dependency InjectionAngularJS RoutingAngularJS Applications

AngularJS Examples

AngularJS Examples

AngularJS Reference

AngularJS Reference

AngularJS Examples

AngularJS ng-style Directive

AngularJS ng-srcset Directive

Image 3: AngularJS Reference AngularJS Reference


AngularJS Examples

Define the image resource address:

Angular

Try it yourself Β»


Definition and Usage

The ng-srcset directive overrides the srcset attribute of the <img> element.

If you use AngularJS code to set the image address, please use the ng-srcset directive instead of the src attribute.

← Ng Ng StyleNg Ng Selected β†’