I am attempting to load an image from a local path within my Angular app component.html file. Below is the code snippet:
<a-scene embedded arjs>
<a-assets>
<img id="test_img" src="/mnt/r/flipkart/proj/src/app/abcd.jpg">
</a-assets>
<a-marker preset="hiro" url="hiro.patt">
<a-image
rotation="90 0 0"
src="#test_img"></a-image>
<!-- <a-image
rotation="90 0 0"
src="#imge" id="baba"></a-image> -->
</a-marker>
<a-entity camera></a-entity>
<div style='position: fixed; top: 10px; width:100%; text-align: center; z-index: 1;'>
<button (click)="hideme()">
HIDE OBJECTS
</button>
</div>
</a-scene>
The following error message appears in the console when trying to access the image:
GET http://localhost:4200/mnt/r/flipkart/proj/src/app/abcd.jpg 404 (Not Found)
Is there a way to display the image without making a get request and directly accessing it from a local folder?