Basic WebSocket implementaion

Downgrade to Socket.io 2.3.0
This commit is contained in:
2020-12-27 22:38:20 +01:00
parent 04d2115f96
commit 4955b098c4
22 changed files with 404 additions and 131 deletions

17
src/routes.ts Normal file
View File

@@ -0,0 +1,17 @@
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { HelloComponent } from "./app/hello/hello.component";
import { NotFoundComponent } from "./app/not-found/not-found.component";
import { PayComponent } from "./app/pay/pay.component";
const routes: Routes = [
{ path: 'pay/:id', component: PayComponent, data: { title: 'Payment' } },
{ path: '', component: HelloComponent },
{ path: '**', component: NotFoundComponent }
]
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule {}