38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import { BrowserModule } from '@angular/platform-browser';
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { HeaderComponent } from './header/header.component';
|
|
import { PaymentComponent } from './payment/payment.component';
|
|
import { QRCodeModule } from 'angularx-qrcode';
|
|
import { PayComponent } from './pay/pay.component';
|
|
import { RouterModule } from '@angular/router';
|
|
import { HelloComponent } from './hello/hello.component';
|
|
import { SocketIoConfig, SocketIoModule } from 'ngx-socket-io';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import { AppRoutingModule } from 'src/routes';
|
|
import { NotFoundComponent } from './not-found/not-found.component';
|
|
|
|
const config: SocketIoConfig = { url: 'http://localhost:2009', options: {} };
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
HeaderComponent,
|
|
PaymentComponent,
|
|
PayComponent,
|
|
HelloComponent,
|
|
NotFoundComponent
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
QRCodeModule,
|
|
HttpClientModule,
|
|
AppRoutingModule,
|
|
SocketIoModule.forRoot(config)
|
|
],
|
|
providers: [],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule { }
|