<a-scene>
<a-sky src="https://i.imgur.com/dneNDgI.jpg" rotation="0 -20 0"></a-sky>
</a-scene>
in your app.module.ts :
- add CUSTOM_ELEMENTS_SCHEMA :
import { ErrorHandler, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
- add schemas: [ CUSTOM_ELEMENTS_SCHEMA ] in @NgModule :
@NgModule({
declarations: [
MyApp,
HomePage
],
imports: [
BrowserModule,
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage
],
providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler}
],
schemas: [ CUSTOM_ELEMENTS_SCHEMA ]
})