Skip to content

frederic-schwarz/aframe-vuejs-3dio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Using vuejs with A-frame

A-frame is great, vuejs is great why not combine them?

This demo uses a custom vue component to wrap an aframe entity to add reactive magic to the aframe scene https://rawgit.com/frederic-schwarz/aframe-vuejs-3dio/master/index.html

Basic setup:

custom component with reactive property within the aframe scene

<a-scene>
  <my-component :furniture-id="id"></my-component>
</a-scene>

vue.js component definition

Vue.component('my-component', {
  props: ['furnitureId'],
  template: `<a-entity :io3d-furniture="'id:' + furnitureId"></a-entity>`
})    

Take a look at index.html for the actual implementation.

Result:

Find furniture

furniture via 3d.io

About

demo to showcase how to combine A-frame and vuejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages