/**
 * Shoppr - E-commerce app starter Ionic 4(https://www.enappd.com)
 *
 * Copyright © 2018-present Enappd. All rights reserved.
 *
 * This source code is licensed as per the terms found in the
 * LICENSE.md file in the root directory of this source .
 *
 */ import { Component , OnInit } from '@angular/core' ; import { FunctionsService } from '../functions.service' ; import { DataService } from '../data.service' ; import { HomePage } from '../home/home.page' ; import { NavController , MenuController } from '@ionic/angular' ; @ Component ( { selector : 'app-search' , templateUrl : './search.page.html' , styleUrls : [ './search.page.scss' ] , } ) export class SearchPage implements OnInit { trending = [ ] ; recent = [ ] ; constructor ( private menuCtrl , private fun , private dataService , private nav ) { this . trending = dataService . trending ; this . recent = dataService . recent ; } ngOnInit ( ) { } ionViewDidEnter ( ) { this . menuCtrl . enable ( true , 'start' ) ; this . menuCtrl . enable ( false , 'end' ) ; } }