YouTip LogoYouTip

Ng Ng Src

# AngularJS `ng-src` Directive [![Image 3: AngularJS Reference](#) AngularJS Reference](#) * * * ## AngularJS Example Add image address:

Angular

[Try it Β»](#) * * * ## Definition and Usage The **ng-src** directive overrides the `src` attribute of an `` element. If you use AngularJS code to set the image address, use the **ng-src** directive instead of the `src` attribute. The **ng-src** directive ensures that the image is not displayed before the AngularJS code is executed. * * * ## Syntax The `` element supports this attribute. * * * ## Parameter Values | Value | Description | | --- | --- | | _string_ | A string returned by an expression. | * * AngularJS Reference](#)
← Linux Comm GroupaddFunc Rgba β†’