Skip to content

NgtRoutedScene

NgtRoutedScene is a simple component that wraps around RouterOutlet and provides a default layout for routed scenes.

Usage

import { NgtCanvas } from 'angular-three/dom';
import { NgtRoutedScene } from 'angular-three';
@Component({
template: `
<ngt-canvas>
<ngt-routed-scene *canvasContent />
</ngt-canvas>
`,
imports: [NgtRoutedScene, NgtCanvas]
})
export class MyCmp {}

How it works

Check out the Routed Scene guide for more details