Skip to content

Commit ae79686

Browse files
authored
Add imports to Animation Example (#65)
1 parent 6f0c9f9 commit ae79686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/astro-docs/src/content/docs/core/getting-started/first-scene.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ And here's the result:
208208
The best way to animate a THREE.js entity is to participate in the animation loop with `injectBeforeRender`. Let's animate the cube by rotating it on the X and Y axes.
209209

210210
```angular-ts title="src/app/scene-graph.component.ts" {"Import injectBeforeRender": 2-3} {"Use template variable": 9-10} {"Get the reference with viewChild": 18-19} {"Animate the cube": 22-27}
211-
import { Component, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy } from '@angular/core';
211+
import { Component, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ElementRef, viewChild } from '@angular/core';
212212
213213
import { injectBeforeRender } from 'angular-three';
214214
import { Mesh } from 'three';

0 commit comments

Comments
 (0)