AngularJS ng-srcset Directive
The ng-srcset directive is used to override the original srcset attribute of an element. If writing in AngularJS, then ng-srcset should be used instead of srcset attribute. It makes sure the image is not displayed wrong before AngularJS has evaluated the code.
Syntax:-
< img ng-srcset="string" >< /img >
Further Explanation:-
ValueDescription stringA string value, or an expression resulting in a string.