| @@ -10,12 +10,6 @@ import { HttpClientModule } from '@angular/common/http'; | |||||
| // Services import | // Services import | ||||
| import { MallService } from './services/mall.service'; | import { MallService } from './services/mall.service'; | ||||
| import { MenuItemService } from './services/menu-item.service'; | |||||
| import { OfferService } from './services/offer.service'; | |||||
| import { OutletService } from './services/outlet.service'; | |||||
| import { CartItemService } from './services/cart-item.service'; | |||||
| import { UserDataService } from './services/user-data.service'; | |||||
| import { OrderService } from './services/order.service'; | |||||
| import { AppComponent } from './app.component'; | import { AppComponent } from './app.component'; | ||||
| import { AppRoutingModule } from './app-routing.module'; | import { AppRoutingModule } from './app-routing.module'; | ||||
| @@ -39,12 +33,6 @@ import { Geolocation } from '@ionic-native/geolocation/ngx'; | |||||
| StatusBar, | StatusBar, | ||||
| SplashScreen, | SplashScreen, | ||||
| MallService, | MallService, | ||||
| MenuItemService, | |||||
| OfferService, | |||||
| OutletService, | |||||
| CartItemService, | |||||
| UserDataService, | |||||
| OrderService, | |||||
| Geolocation, | Geolocation, | ||||
| { provide: RouteReuseStrategy, useClass: IonicRouteStrategy } | { provide: RouteReuseStrategy, useClass: IonicRouteStrategy } | ||||
| ], | ], | ||||
| @@ -1,9 +1,7 @@ | |||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||
| import { Location } from '@angular/common'; | import { Location } from '@angular/common'; | ||||
| import { CartItemService } from '../services/cart-item.service'; | |||||
| import { MallService } from '../services/mall.service'; | import { MallService } from '../services/mall.service'; | ||||
| import { Router } from '@angular/router'; | import { Router } from '@angular/router'; | ||||
| import { OrderService } from '../services/order.service'; | |||||
| import { ToastController } from '@ionic/angular'; | import { ToastController } from '@ionic/angular'; | ||||
| @Component({ | @Component({ | ||||
| @@ -14,10 +12,8 @@ import { ToastController } from '@ionic/angular'; | |||||
| export class CartPage implements OnInit { | export class CartPage implements OnInit { | ||||
| constructor( | constructor( | ||||
| private location: Location, | private location: Location, | ||||
| private cartService: CartItemService, | |||||
| private mallService: MallService, | private mallService: MallService, | ||||
| private router: Router, | private router: Router, | ||||
| private orderService: OrderService, | |||||
| public toastController: ToastController | public toastController: ToastController | ||||
| ) { } | ) { } | ||||
| @@ -1,7 +1,5 @@ | |||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||
| import { OrderService } from '../services/order.service'; | |||||
| import { MallService } from '../services/mall.service'; | import { MallService } from '../services/mall.service'; | ||||
| import { OutletService } from '../services/outlet.service'; | |||||
| @Component({ | @Component({ | ||||
| selector: 'app-orders', | selector: 'app-orders', | ||||
| @@ -12,9 +10,7 @@ export class OrdersComponent implements OnInit { | |||||
| orders: any = []; | orders: any = []; | ||||
| constructor( | constructor( | ||||
| private orderService: OrderService, | |||||
| private mallService: MallService, | private mallService: MallService, | ||||
| private outletService: OutletService | |||||
| ) { } | ) { } | ||||
| ngOnInit() { | ngOnInit() { | ||||
| @@ -156,8 +156,8 @@ | |||||
| </header> | </header> | ||||
| <ion-list> | <ion-list> | ||||
| <ion-item *ngFor="let tag of outlet_details.item_categories"> | <ion-item *ngFor="let tag of outlet_details.item_categories"> | ||||
| <ion-checkbox slot="start" [checked]="selected_tag === tag"></ion-checkbox> | |||||
| <ion-label> {{ tag }} </ion-label> | |||||
| <!-- <ion-checkbox slot="start" [checked]="selected_tag === tag"></ion-checkbox> --> | |||||
| <!-- <ion-label> {{ tag }} </ion-label> --> | |||||
| </ion-item> | </ion-item> | ||||
| </ion-list> | </ion-list> | ||||
| </div> | </div> | ||||
| @@ -1,12 +0,0 @@ | |||||
| import { TestBed } from '@angular/core/testing'; | |||||
| import { CartItemService } from './cart-item.service'; | |||||
| describe('CartItemService', () => { | |||||
| beforeEach(() => TestBed.configureTestingModule({})); | |||||
| it('should be created', () => { | |||||
| const service: CartItemService = TestBed.get(CartItemService); | |||||
| expect(service).toBeTruthy(); | |||||
| }); | |||||
| }); | |||||
| @@ -1,12 +0,0 @@ | |||||
| import { Injectable } from '@angular/core'; | |||||
| import { Storage } from '@ionic/storage'; | |||||
| @Injectable({ | |||||
| providedIn: 'root' | |||||
| }) | |||||
| export class CartItemService { | |||||
| constructor( | |||||
| private storage: Storage | |||||
| ) { } | |||||
| } | |||||
| @@ -1,12 +0,0 @@ | |||||
| import { TestBed } from '@angular/core/testing'; | |||||
| import { MenuItemService } from './menu-item.service'; | |||||
| describe('MenuItemService', () => { | |||||
| beforeEach(() => TestBed.configureTestingModule({})); | |||||
| it('should be created', () => { | |||||
| const service: MenuItemService = TestBed.get(MenuItemService); | |||||
| expect(service).toBeTruthy(); | |||||
| }); | |||||
| }); | |||||
| @@ -1,8 +0,0 @@ | |||||
| import { Injectable } from '@angular/core'; | |||||
| @Injectable({ | |||||
| providedIn: 'root' | |||||
| }) | |||||
| export class MenuItemService { | |||||
| constructor() { } | |||||
| } | |||||
| @@ -1,12 +0,0 @@ | |||||
| import { TestBed } from '@angular/core/testing'; | |||||
| import { OfferService } from './offer.service'; | |||||
| describe('OfferService', () => { | |||||
| beforeEach(() => TestBed.configureTestingModule({})); | |||||
| it('should be created', () => { | |||||
| const service: OfferService = TestBed.get(OfferService); | |||||
| expect(service).toBeTruthy(); | |||||
| }); | |||||
| }); | |||||
| @@ -1,11 +0,0 @@ | |||||
| import { Injectable } from '@angular/core'; | |||||
| @Injectable({ | |||||
| providedIn: 'root' | |||||
| }) | |||||
| export class OfferService { | |||||
| constructor() { | |||||
| } | |||||
| } | |||||
| @@ -1,12 +0,0 @@ | |||||
| import { TestBed } from '@angular/core/testing'; | |||||
| import { OrderService } from './order.service'; | |||||
| describe('OrderService', () => { | |||||
| beforeEach(() => TestBed.configureTestingModule({})); | |||||
| it('should be created', () => { | |||||
| const service: OrderService = TestBed.get(OrderService); | |||||
| expect(service).toBeTruthy(); | |||||
| }); | |||||
| }); | |||||
| @@ -1,11 +0,0 @@ | |||||
| import { Injectable } from '@angular/core'; | |||||
| @Injectable({ | |||||
| providedIn: 'root' | |||||
| }) | |||||
| export class OrderService { | |||||
| orders: any = []; | |||||
| constructor( | |||||
| ) { } | |||||
| } | |||||
| @@ -1,12 +0,0 @@ | |||||
| import { TestBed } from '@angular/core/testing'; | |||||
| import { OutletService } from './outlet.service'; | |||||
| describe('OutletService', () => { | |||||
| beforeEach(() => TestBed.configureTestingModule({})); | |||||
| it('should be created', () => { | |||||
| const service: OutletService = TestBed.get(OutletService); | |||||
| expect(service).toBeTruthy(); | |||||
| }); | |||||
| }); | |||||
| @@ -1,8 +0,0 @@ | |||||
| import { Injectable } from '@angular/core'; | |||||
| @Injectable({ | |||||
| providedIn: 'root' | |||||
| }) | |||||
| export class OutletService { | |||||
| constructor() { } | |||||
| } | |||||
| @@ -1,12 +0,0 @@ | |||||
| import { TestBed } from '@angular/core/testing'; | |||||
| import { UserDataService } from './user-data.service'; | |||||
| describe('UserDataService', () => { | |||||
| beforeEach(() => TestBed.configureTestingModule({})); | |||||
| it('should be created', () => { | |||||
| const service: UserDataService = TestBed.get(UserDataService); | |||||
| expect(service).toBeTruthy(); | |||||
| }); | |||||
| }); | |||||
| @@ -1,10 +0,0 @@ | |||||
| import { Injectable } from '@angular/core'; | |||||
| @Injectable({ | |||||
| providedIn: 'root' | |||||
| }) | |||||
| export class UserDataService { | |||||
| constructor( | |||||
| ) { } | |||||
| } | |||||