diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index ee42ad5..b459d50 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -1,11 +1,11 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home/home.component';
-import { CargarProductosComponent } from './cargar-productos/cargar-productos.component';
+import { InicioComponent } from './inicio/inicio.component';
const routes: Routes = [
{ path: 'home', component: HomeComponent },
- { path: 'cargar-productos', component: CargarProductosComponent },
+ { path: 'inicio', component: InicioComponent },
{ path: '**', redirectTo: '/home', pathMatch: 'full' },
];
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 7d59170..c5059e3 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -7,7 +7,7 @@ import { HeaderComponent } from './header/header.component';
import { SidebarComponent } from './sidebar/sidebar.component';
import { CarouselComponent } from './carousel/carousel.component';
import { HomeComponent } from './home/home.component';
-import { CargarProductosComponent } from './cargar-productos/cargar-productos.component';
+import { InicioComponent } from './inicio/inicio.component';
@NgModule({
declarations: [
@@ -16,7 +16,7 @@ import { CargarProductosComponent } from './cargar-productos/cargar-productos.co
SidebarComponent,
CarouselComponent,
HomeComponent,
- CargarProductosComponent
+ InicioComponent
],
imports: [
BrowserModule,
diff --git a/src/app/cargar-productos/cargar-productos.component.html b/src/app/cargar-productos/cargar-productos.component.html
deleted file mode 100644
index 4bc163a..0000000
--- a/src/app/cargar-productos/cargar-productos.component.html
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/src/app/cargar-productos/cargar-productos.component.scss b/src/app/cargar-productos/cargar-productos.component.scss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/cargar-productos/cargar-productos.component.spec.ts b/src/app/cargar-productos/cargar-productos.component.spec.ts
deleted file mode 100644
index 4d90e34..0000000
--- a/src/app/cargar-productos/cargar-productos.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { CargarProductosComponent } from './cargar-productos.component';
-
-describe('CargarProductosComponent', () => {
- let component: CargarProductosComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ CargarProductosComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(CargarProductosComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/cargar-productos/cargar-productos.component.ts b/src/app/cargar-productos/cargar-productos.component.ts
deleted file mode 100644
index 3e2fb01..0000000
--- a/src/app/cargar-productos/cargar-productos.component.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { Component, OnInit } from '@angular/core';
-
-@Component({
- selector: 'app-cargar-productos',
- templateUrl: './cargar-productos.component.html',
- styleUrls: ['./cargar-productos.component.scss']
-})
-export class CargarProductosComponent implements OnInit {
-
- constructor() { }
-
- ngOnInit() {
- }
-
-}
diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts
index 987b90f..6b8d768 100644
--- a/src/app/home/home.component.ts
+++ b/src/app/home/home.component.ts
@@ -15,7 +15,7 @@ export class HomeComponent implements OnInit {
@HostListener('document:click', ['$event'])
documentClick(event: MouseEvent) {
- this.router.navigate(['/cargar-productos']);
+ this.router.navigate(['/inicio']);
}
}
diff --git a/src/app/inicio/inicio.component.html b/src/app/inicio/inicio.component.html
new file mode 100644
index 0000000..165280b
--- /dev/null
+++ b/src/app/inicio/inicio.component.html
@@ -0,0 +1,15 @@
+
\ No newline at end of file
diff --git a/src/app/inicio/inicio.component.scss b/src/app/inicio/inicio.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/inicio/inicio.component.spec.ts b/src/app/inicio/inicio.component.spec.ts
new file mode 100644
index 0000000..86b65f6
--- /dev/null
+++ b/src/app/inicio/inicio.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { InicioComponent } from './inicio.component';
+
+describe('InicioComponent', () => {
+ let component: InicioComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ InicioComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(InicioComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/inicio/inicio.component.ts b/src/app/inicio/inicio.component.ts
new file mode 100644
index 0000000..89d5b17
--- /dev/null
+++ b/src/app/inicio/inicio.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+ selector: 'app-inicio',
+ templateUrl: './inicio.component.html',
+ styleUrls: ['./inicio.component.scss']
+})
+export class InicioComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit() {
+ }
+
+}