diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 9b6b79e..99893c7 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,58 +1,62 @@ -import { NgModule } from '@angular/core'; -import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; -import { LoginPage } from './login/login.page'; - - -const routes: Routes = [ - - { - path: 'login', - component: LoginPage - }, - { - path: 'tabs', - loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule) - }, - { - path: 'tabsUser', - loadChildren: () => import('./tabs-user/tabs-user.module').then(m => m.TabsUserPageModule) - }, - { - path: 'view-evento', - loadChildren: () => import('./view-evento/view-evento.module').then( m => m.ViewEventoPageModule) - }, - { - path: 'galeriamodal', - loadChildren: () => import('./galeriamodal/galeriamodal.module').then( m => m.GaleriamodalPageModule) - }, - { - path:'', - redirectTo: 'login', - pathMatch: 'full' - }, - { - path: 'tabs-user', - loadChildren: () => import('./tabs-user/tabs-user.module').then( m => m.TabsUserPageModule) - }, - { - path: 'feed', - loadChildren: () => import('./feed/feed.module').then( m => m.FeedPageModule) - }, - { - path: 'view-evento-cliente', - loadChildren: () => import('./view-evento-cliente/view-evento-cliente.module').then( m => m.ViewEventoClientePageModule) +import { NgModule } from '@angular/core'; +import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; +import { LoginPage } from './login/login.page'; + + +const routes: Routes = [ + + { + path: 'login', + component: LoginPage + }, + { + path: 'tabs', + loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule) + }, + { + path: 'tabsUser', + loadChildren: () => import('./tabs-user/tabs-user.module').then(m => m.TabsUserPageModule) + }, + { + path: 'view-evento', + loadChildren: () => import('./view-evento/view-evento.module').then( m => m.ViewEventoPageModule) + }, + { + path: 'galeriamodal', + loadChildren: () => import('./galeriamodal/galeriamodal.module').then( m => m.GaleriamodalPageModule) + }, + { + path:'', + redirectTo: 'login', + pathMatch: 'full' + }, + { + path: 'tabs-user', + loadChildren: () => import('./tabs-user/tabs-user.module').then( m => m.TabsUserPageModule) + }, + { + path: 'feed', + loadChildren: () => import('./feed/feed.module').then( m => m.FeedPageModule) + }, + { + path: 'view-evento-cliente', + loadChildren: () => import('./view-evento-cliente/view-evento-cliente.module').then( m => m.ViewEventoClientePageModule) + }, { + path: 'view-discoteca-cliente', + loadChildren: () => import('./view-discoteca-cliente/view-discoteca-cliente.module').then( m => m.ViewDiscotecaClientePageModule) }, - - - - - -]; -@NgModule({ - imports: [ - RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }) - ], - exports: [RouterModule] -}) -export class AppRoutingModule {} + + + + + + +]; +@NgModule({ + imports: [ + RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }) + ], + exports: [RouterModule] +}) +export class AppRoutingModule {} diff --git a/src/app/feed/feed.page.ts b/src/app/feed/feed.page.ts index f224008..f928a9e 100644 --- a/src/app/feed/feed.page.ts +++ b/src/app/feed/feed.page.ts @@ -29,7 +29,6 @@ export class FeedPage implements OnInit { this.feedService.eventoIndex = this.eventos.indexOf(evento); let discotecaDelEvento: DiscotecaI = this.discotecas[this.idsDiscoteca.indexOf(evento.discotecaID)]; - console.log(discotecaDelEvento); this.feedService.discotecaEvento = discotecaDelEvento; this.router.navigate(['/tabsUser/tab2/view-evento-cliente']); diff --git a/src/app/tab2/tab2-routing.module.ts b/src/app/tab2/tab2-routing.module.ts index 4678fa5..3ec4433 100644 --- a/src/app/tab2/tab2-routing.module.ts +++ b/src/app/tab2/tab2-routing.module.ts @@ -3,17 +3,21 @@ import { RouterModule, Routes } from '@angular/router'; import { FeedPage } from '../feed/feed.page'; import { Tab2Page } from './tab2.page'; import { ViewEventoClientePage } from '../view-evento-cliente/view-evento-cliente.page'; +import { ViewDiscotecaClientePage } from '../view-discoteca-cliente/view-discoteca-cliente.page'; const routes: Routes = [ { path: '', component: FeedPage, - }, { path: 'view-evento-cliente', component: ViewEventoClientePage + }, + { + path: 'view-discoteca-cliente', + component: ViewDiscotecaClientePage } ]; diff --git a/src/app/view-discoteca-cliente/view-discoteca-cliente-routing.module.ts b/src/app/view-discoteca-cliente/view-discoteca-cliente-routing.module.ts new file mode 100644 index 0000000..6d44c7e --- /dev/null +++ b/src/app/view-discoteca-cliente/view-discoteca-cliente-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { ViewDiscotecaClientePage } from './view-discoteca-cliente.page'; + +const routes: Routes = [ + { + path: '', + component: ViewDiscotecaClientePage + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class ViewDiscotecaClientePageRoutingModule {} diff --git a/src/app/view-discoteca-cliente/view-discoteca-cliente.module.ts b/src/app/view-discoteca-cliente/view-discoteca-cliente.module.ts new file mode 100644 index 0000000..2fe7f87 --- /dev/null +++ b/src/app/view-discoteca-cliente/view-discoteca-cliente.module.ts @@ -0,0 +1,20 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +import { IonicModule } from '@ionic/angular'; + +import { ViewDiscotecaClientePageRoutingModule } from './view-discoteca-cliente-routing.module'; + +import { ViewDiscotecaClientePage } from './view-discoteca-cliente.page'; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + ViewDiscotecaClientePageRoutingModule + ], + declarations: [ViewDiscotecaClientePage] +}) +export class ViewDiscotecaClientePageModule {} diff --git a/src/app/view-discoteca-cliente/view-discoteca-cliente.page.html b/src/app/view-discoteca-cliente/view-discoteca-cliente.page.html new file mode 100644 index 0000000..111ddd9 --- /dev/null +++ b/src/app/view-discoteca-cliente/view-discoteca-cliente.page.html @@ -0,0 +1,9 @@ + + + view-discoteca-cliente + + + + + + diff --git a/src/app/view-discoteca-cliente/view-discoteca-cliente.page.scss b/src/app/view-discoteca-cliente/view-discoteca-cliente.page.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/view-discoteca-cliente/view-discoteca-cliente.page.spec.ts b/src/app/view-discoteca-cliente/view-discoteca-cliente.page.spec.ts new file mode 100644 index 0000000..74a4352 --- /dev/null +++ b/src/app/view-discoteca-cliente/view-discoteca-cliente.page.spec.ts @@ -0,0 +1,24 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; + +import { ViewDiscotecaClientePage } from './view-discoteca-cliente.page'; + +describe('ViewDiscotecaClientePage', () => { + let component: ViewDiscotecaClientePage; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ViewDiscotecaClientePage ], + imports: [IonicModule.forRoot()] + }).compileComponents(); + + fixture = TestBed.createComponent(ViewDiscotecaClientePage); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/view-discoteca-cliente/view-discoteca-cliente.page.ts b/src/app/view-discoteca-cliente/view-discoteca-cliente.page.ts new file mode 100644 index 0000000..02d4214 --- /dev/null +++ b/src/app/view-discoteca-cliente/view-discoteca-cliente.page.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-view-discoteca-cliente', + templateUrl: './view-discoteca-cliente.page.html', + styleUrls: ['./view-discoteca-cliente.page.scss'], +}) +export class ViewDiscotecaClientePage implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/view-evento-cliente/view-evento-cliente-routing.module.ts b/src/app/view-evento-cliente/view-evento-cliente-routing.module.ts index a1deaeb..808147f 100644 --- a/src/app/view-evento-cliente/view-evento-cliente-routing.module.ts +++ b/src/app/view-evento-cliente/view-evento-cliente-routing.module.ts @@ -1,5 +1,6 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; +import { ViewDiscotecaClientePage } from '../view-discoteca-cliente/view-discoteca-cliente.page'; import { ViewEventoClientePage } from './view-evento-cliente.page'; @@ -7,6 +8,10 @@ const routes: Routes = [ { path: '', component: ViewEventoClientePage + }, + { + path: 'view-discoteca-cliente', + component: ViewDiscotecaClientePage } ]; diff --git a/src/app/view-evento-cliente/view-evento-cliente.page.html b/src/app/view-evento-cliente/view-evento-cliente.page.html index 83661de..39aad18 100644 --- a/src/app/view-evento-cliente/view-evento-cliente.page.html +++ b/src/app/view-evento-cliente/view-evento-cliente.page.html @@ -23,7 +23,7 @@
- {{discoteca?.nombre}} + {{discoteca?.nombre}}
diff --git a/src/app/view-evento-cliente/view-evento-cliente.page.scss b/src/app/view-evento-cliente/view-evento-cliente.page.scss index e69de29..50f1b40 100644 --- a/src/app/view-evento-cliente/view-evento-cliente.page.scss +++ b/src/app/view-evento-cliente/view-evento-cliente.page.scss @@ -0,0 +1,3 @@ +.discotecaEvento{ + padding: 40px; +} \ No newline at end of file