In the following example, we want to display the country properties using AngularJs Code:
- Country Flag: Path of the flag image.
- Country Name: Palestine
- Country Capital: Jerusalem
- Country Language: Arabic
1. Create the module, controller, and your data.
You can return to previous AngularJs posts to learn how to write AngularJs module and controller.

2. Create your html file to display the country information.

Use ng-src for the img tag to display the country flag.
Note: If you use src instead of ng-src, you will get 404 error (Use developer tools to notice the error)
Final Output
Run and Review the code