Amsaveni Natarajan
Amsaveni Natarajan

Reputation: 133

How do i display an image(AWS) in same page in angularjs

I need to display an image in jhipster angularjs application(In same Page). The image is rendered from AWS server- so, i have got only document path.

Generally if i give that doc path, it will redirect to chrome to display that image. But, in my case, i need to display in the same screen.

How to achieve this in angularjs?

Note: Document Path: https://s3-us-west-2.amazonaws.com/images.iloads.in/Saas_Testing%2FVehicle_1508824497164.jpeg

Upvotes: 0

Views: 29

Answers (1)

31piy
31piy

Reputation: 23859

Use an img tag to display an image in the browser.

<img src="https://s3-us-west-2.amazonaws.com/images.iloads.in/Saas_Testing%2FVehicle_1508824497164.jpeg">

If you use AngularJS, change src to ng-src so that the given value binds to a scope variable.

Upvotes: 1

Related Questions