import { CommonModule } from '@angular/common' ; import { NgModule } from '@angular/core' ; import { FormsModule } from '@angular/forms' ; import { RouterModule , Routes } from '@angular/router' ; import { IonicModule } from '@ionic/angular' ; import { TranslateModule } from '@ngx-translate/core' ; import { ZXingScannerModule } from '@zxing/ngx-scanner' ; import { TabScanPage } from './tab-scan.page' ; const routes = [ { path : '' , component : TabScanPage } ] ; @ NgModule ( { imports : [ CommonModule , FormsModule , IonicModule , RouterModule . forChild ( routes ) , TranslateModule , ZXingScannerModule ] , declarations : [ TabScanPage ] } ) export class TabScanPageModule { }