Ng Ng Src
# AngularJS `ng-src` Directive
[ AngularJS Reference](#)
* * *
## AngularJS Example
Add image address:
[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](#)
YouTip