The component boilerplate has been deprecated. Use the A-Frame angle CLI instead to set up a component template:
npm install -g angle
angle initcomponentThis is not at all means required for writing an A-Frame component. It is intended for publishing and sharing a component for the community to reuse.
npm install && npm run unboilto rename and trim stuff.- Write your component.
- Build examples (
npm run devto watch for changes to build example bundles). npm publishand commit thedist/files.npm run ghpagesto share with people.- Share on Slack, awesome-aframe, and the Registry!
--trim--
A example component for A-Frame.
| Property | Description | Default Value |
|---|---|---|
Install and use by directly including the browser files:
<head>
<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/0.2.0/aframe.min.js"></script>
<script src="https://rawgit.com/ngokevin/aframe-component-boilerplate/master/dist/aframe-example-component.min.js"></script>
</head>
<body>
<a-scene>
<a-entity example="exampleProp: exampleVal"></a-entity>
</a-scene>
</body>Install via npm:
npm install aframe-example-componentThen register and use.
require('aframe');
require('aframe-example-component');