File tree Expand file tree Collapse file tree 3 files changed +11
-22
lines changed Expand file tree Collapse file tree 3 files changed +11
-22
lines changed Original file line number Diff line number Diff line change 1
1
import { Component } from '@angular/core'
2
2
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'
3
3
4
+ import { BrowserModule } from '@angular/platform-browser'
5
+ import { StlModelViewerModule } from 'angular-stl-model-viewer'
4
6
import * as THREE from 'three'
5
7
6
8
@Component ( {
7
9
selector : 'app-root' ,
10
+ imports : [
11
+ BrowserModule ,
12
+ StlModelViewerModule
13
+ ] ,
8
14
styleUrls : [ './app.component.css' ] ,
9
15
templateUrl : './app.component.html'
10
16
} )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import { enableProdMode } from '@angular/core'
2
- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
3
2
4
- import { AppModule } from './app/app.module'
3
+ import { bootstrapApplication } from '@angular/platform-browser'
4
+ import { AppComponent } from './app/app.component'
5
5
import { environment } from './environments/environment'
6
6
7
7
if ( environment . production ) {
8
8
enableProdMode ( )
9
9
}
10
10
11
- platformBrowserDynamic ( ) . bootstrapModule ( AppModule )
11
+ bootstrapApplication ( AppComponent , {
12
+ providers : [ ]
13
+ } )
12
14
. catch ( err => console . error ( err ) )
You can’t perform that action at this time.
0 commit comments