I've been trying to implement AR.js in Angular 6 but I cant seem to get it working.
I've implemented A-frame using this guide here: https://medium.com/@pitipon/a-frame-with-angular-setup-project-5797b2f2a03b
Even with aframe seemingly working I cant really get ar.js to work. I've tried just adding it in the index.html as some people have done but that doesnt properly work for me either. I've also tried to install it with npm install and adding it to scripts in angular.json but none of it seems to help.
this is my app.component.html:
<a-scene embedded arjs='sourceType: webcam;'>
<a-marker preset='hiro'>
<a-box position="0 0.5 0" rotation="0 45 0" color="#4CC3D9"></a-box>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
my index.html is just the default now since adding the scripts there didnt seem to work.
I can get the webcam to work by adding the scripts into the index.html and placing what would be in app.component.html right in the body instead of app-root but then it just fills my console with errors and fails to detect anything.
I just cant seem to get it to work. If anyone could tell me how they managed to do it I'd very much appreciate that.