AngularJS

AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

AngularJS ng src Directive

AngularJS ng-src Directive

 

 

The ng-src directive is used to override the original src attribute of an img element. If writing in AngularJS, then ng-src should be used instead of src attribute. It makes sure the image is not displayed wrong before AngularJS has evaluated the code.

 

Syntax:-

 

< img ng-src="string" >< /img >

 

Further Explanation:-

 

Value Description
string A string value, or an expression resulting in a string.

Code Explanation

All Tutorials related to AngularJS Directives

All Sections related to AngularJS