Procházet zdrojové kódy

Removed one of the stupidest code ever written by me

master
kj1352 před 6 roky
rodič
revize
09013d8e1f
3 změnil soubory, kde provedl 2 přidání a 10 odebrání
  1. +1
    -1
      src/app/app-routing.module.ts
  2. +0
    -9
      src/app/services/mall.service.ts
  3. +1
    -0
      tsconfig.json

+ 1
- 1
src/app/app-routing.module.ts Zobrazit soubor

@@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
{ path: '', redirectTo: 'malls', pathMatch: 'full' },
{ path: '', redirectTo: 'onboarding', pathMatch: 'full' },
{ path: 'onboarding', loadChildren: './onboarding/onboarding.module#OnboardingPageModule' },
{ path: 'login', loadChildren: './login/login.module#LoginPageModule' },
{ path: 'malls', loadChildren: './malls/malls.module#MallsPageModule' },


+ 0
- 9
src/app/services/mall.service.ts Zobrazit soubor

@@ -192,13 +192,4 @@ export class MallService {
public async getMallByID(id: string) {
return this.malls.find((mall) => mall.id === id);
}

public async updateMallDetails(mall_details: Mall) {
for (let i = 0; i < this.malls.length; i += 1) {
if (this.malls[i].id === mall_details.id) {
this.malls[i] = mall_details;
}
}
return this.malls;
}
}

+ 1
- 0
tsconfig.json Zobrazit soubor

@@ -1,6 +1,7 @@
{
"compileOnSave": false,
"compilerOptions": {
"paths": { "*": ["types/*"] },
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,


Načítá se…
Zrušit
Uložit