Browse Source

Removed one of the stupidest code ever written by me

master
kj1352 6 years ago
parent
commit
09013d8e1f
3 changed files with 2 additions and 10 deletions
  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 View File

@@ -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 View File

@@ -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 View File

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


Loading…
Cancel
Save