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 11import { Component } from '@angular/core'
22import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'
33
4+ import { BrowserModule } from '@angular/platform-browser'
5+ import { StlModelViewerModule } from 'angular-stl-model-viewer'
46import * as THREE from 'three'
57
68@Component ( {
79 selector : 'app-root' ,
10+ imports : [
11+ BrowserModule ,
12+ StlModelViewerModule
13+ ] ,
814 styleUrls : [ './app.component.css' ] ,
915 templateUrl : './app.component.html'
1016} )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { enableProdMode } from '@angular/core'
2- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
32
4- import { AppModule } from './app/app.module'
3+ import { bootstrapApplication } from '@angular/platform-browser'
4+ import { AppComponent } from './app/app.component'
55import { environment } from './environments/environment'
66
77if ( environment . production ) {
88 enableProdMode ( )
99}
1010
11- platformBrowserDynamic ( ) . bootstrapModule ( AppModule )
11+ bootstrapApplication ( AppComponent , {
12+ providers : [ ]
13+ } )
1214 . catch ( err => console . error ( err ) )
You can’t perform that action at this time.
0 commit comments