From da1fa303aa5ce81df1b1fd2ad34f9c8127684e16 Mon Sep 17 00:00:00 2001 From: Luis Suarez Date: Wed, 5 Feb 2020 10:43:57 -0400 Subject: [PATCH] ng lint --- src/app/app-routing.module.ts | 2 +- .../indicaciones-pago-tarjeta-routing.module.ts | 2 +- .../indicaciones-pago-tarjeta.component.ts | 5 +---- .../indicaciones-pago-tarjeta.module.ts | 6 +++--- .../modules/mensaje-final/mensaje-final.component.ts | 18 +++++++++--------- 5 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 3401497..2c94732 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -15,7 +15,7 @@ const routes: Routes = [ }, { path: 'indicaciones-pago-tarjeta', - loadChildren: () => import('./modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.module').then(m => m.indicacionesPagoTarjetaModule) + loadChildren: () => import('./modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.module').then(m => m.IndicacionesPagoTarjetaModule) }, { path: 'opcion-pedido', diff --git a/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta-routing.module.ts b/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta-routing.module.ts index a5f77bc..484c656 100644 --- a/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta-routing.module.ts +++ b/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta-routing.module.ts @@ -10,4 +10,4 @@ const routes: Routes = [ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) -export class indicacionesPagoTarjetaRoutingModule { } +export class IndicacionesPagoTarjetaRoutingModule { } diff --git a/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.component.ts b/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.component.ts index e781f8d..eb2e648 100644 --- a/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.component.ts +++ b/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.component.ts @@ -6,11 +6,8 @@ import { Component, OnInit, OnChanges } from '@angular/core'; styleUrls: ['./indicaciones-pago-tarjeta.component.scss'] }) export class IndicacionesPagoTarjetaComponent implements OnInit { - mediaPantalla:boolean; + mediaPantalla: boolean; constructor() { } ngOnInit() {} - - ngOnChanges() { - } } diff --git a/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.module.ts b/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.module.ts index a8bc2dd..d15e67d 100644 --- a/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.module.ts +++ b/src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.module.ts @@ -1,7 +1,7 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { indicacionesPagoTarjetaRoutingModule } from './indicaciones-pago-tarjeta-routing.module'; +import { IndicacionesPagoTarjetaRoutingModule } from './indicaciones-pago-tarjeta-routing.module'; import { IndicacionesPagoTarjetaComponent } from './indicaciones-pago-tarjeta.component'; @@ -9,7 +9,7 @@ import { IndicacionesPagoTarjetaComponent } from './indicaciones-pago-tarjeta.co declarations: [IndicacionesPagoTarjetaComponent], imports: [ CommonModule, - indicacionesPagoTarjetaRoutingModule + IndicacionesPagoTarjetaRoutingModule ] }) -export class indicacionesPagoTarjetaModule { } +export class IndicacionesPagoTarjetaModule { } diff --git a/src/app/modules/mensaje-final/mensaje-final.component.ts b/src/app/modules/mensaje-final/mensaje-final.component.ts index 465a6c0..cc5e8e7 100644 --- a/src/app/modules/mensaje-final/mensaje-final.component.ts +++ b/src/app/modules/mensaje-final/mensaje-final.component.ts @@ -1,11 +1,11 @@ -import { Component, OnInit } from "@angular/core"; -import { ArticuloService } from "src/app/services/articulo/articulo.service"; -import { Router } from "@angular/router"; +import { Component, OnInit } from '@angular/core'; +import { ArticuloService } from 'src/app/services/articulo/articulo.service'; +import { Router } from '@angular/router'; @Component({ - selector: "app-mensaje-final", - templateUrl: "./mensaje-final.component.html", - styleUrls: ["./mensaje-final.component.scss"] + selector: 'app-mensaje-final', + templateUrl: './mensaje-final.component.html', + styleUrls: ['./mensaje-final.component.scss'] }) export class MensajeFinalComponent implements OnInit { timer: any; @@ -23,12 +23,12 @@ export class MensajeFinalComponent implements OnInit { goToSplash() { this.articuloService.cleanShoppingCar(); - this.router.navigate([""]); + this.router.navigate(['']); } mediaPantalla() { - if ($("body").hasClass("media-pantalla")) { - $("body").removeClass("media-pantalla"); + if ($('body').hasClass('media-pantalla')) { + $('body').removeClass('media-pantalla'); } } } -- 1.9.1