Closed IRobot1 closed 2 years ago
Here's other examples,
<ngt-instanced-mesh #inst="ngtInstancedMesh" (ready)="ready(inst.mesh)"
<ngt-mesh #drag="ngtMesh" (ready)="cubeready(drag.mesh)"
All NGT classes are now Component rather than Directive, exportAs
isn't needed anymore.
Can you show how the above examples should now work? The following used to work, but I'm not sure how to make it work now.
<ngt-plane-geometry #plane="ngtPlaneGeometry"></ngt-plane-geometry>
<ngt-mesh-standard-material #standard="ngtMeshStandardMaterial"></ngt-mesh-standard-material>
<ngt-mesh [geometry]="plane.geometry" [material]="standard.material"></ngt-mesh>
If I change to this, I get the following error Property 'geometry' does not exist on type 'NgtPlaneGeometry'.
<ngt-plane-geometry #plane></ngt-plane-geometry>
<ngt-mesh-standard-material #standard></ngt-mesh-standard-material>
<ngt-mesh [geometry]="plane.geometry" [material]="standard.material"></ngt-mesh>
<ngt-plane-geometry #plane></ngt-plane-geometry>
<ngt-mesh-standard-material #standard></ngt-mesh-standard-material>
<ngt-mesh [geometry]="plane.instance" [material]="standard.instance"></ngt-mesh>
I was just working on that section of the migration guide so I use this example as well.
Using V5 beta, error NG8003: No directive found with exportAs 'ngtPlaneGeometry'.
There are may other examples where variable type like ngtPlaneGeometry is no longer available.