Latest web development tutorials

AngularJS ng-srcset instruction

AngularJS Reference Manual AngularJS Reference Manual


AngularJS examples

Definition picture of the resources Address:

<Div ng-init = "myVar = '../wp-content/uploads/2014/06/angular.jpg'">
<H1> Angular </ h1>
<Img ng-srcset = "{ {myVar}}">
</ Div>

try it"

Definition and Usage

ng-srcset instruction covers srcset property <img> element.

If you use AngularJS code to set the address of the picture, useng-srcset command substitution srcset property.

ng-srcset instruction ensured AngularJS before the code that do not display images.


grammar

<Img ng-srcset = "string "> </ img>

<Img> and <source> element supports the property.


Parameter Value

value description
string Expression string is returned.

AngularJS Reference Manual AngularJS Reference Manual