I am trying to display a gltf-model in Aframe using Angular 7.
`<a-scene embedded="" cursor="rayOrigin: mouse">
<a-assets>
<a-asset-item id="bedroom" src="../../assets/models/homedesign/scene.gltf"></a-asset-item>
</a-assets>
<a-entity id="camera" camera="" position="0 0 0" look-controls wasd-controls>
</a-entity>
<a-entity id="room" gltf-model="#bedroom" position="-14 -30 -125" rotation= "0 160 0" material-map="map: map">
</a-entity>
</a-scene>
`
But the model is not displayed and I see the following message in the console log -
core:propertyTypes:warn "#bedroom" asset not found.
The path mentioned is correct as I am able to open the gltf file from the html in the code editor.
Also, all other primitives such as "a-box" etc.. get displayed.
Here is a screenshot of my app folder structure -
the html is in homedecor.component.html and the gltf file is inside homedesign folder. I start the server using ng serve
Could someone please take a look and help?
Thanks