code: function(){
            this.counter = this.data.interval;
  
            this.cam = new THREE.CubeCamera( 0.5, this.data.distance, this.data.resolution);
            this.el.object3D.add( this.cam );
            this.mirrorMaterial = new THREE.MeshBasicMaterial( { color: this.data.color, refractionRatio: this.data.refraction, envMap: this.cam.renderTarget.texture } );
            this.done = false;
            var mirrormat = this.mirrorMaterial;
            this.mesh = this.el.getObject3D('mesh');
            if(this.mesh){
              this.mesh.traverse( function( child ) { 
                  if ( child instanceof THREE.Mesh ) child.material = mirrormat;
              });
            }
    }
docs: Called once when component is attached. Generally for initial setup.