diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 3c61b17..991d36e 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -37,7 +37,7 @@ const routes: Routes = [ }, { path: 'sagas/:id/seasons', - loadChildren: () => import('./pages/sagas/list-episodes/list-episodes.module').then( m => m.ListSeasonsPageModule) + loadChildren: () => import('./pages/sagas/list-episodes/list-episodes.module').then( m => m.ListEpisodesPageModule) }, { path: 'sagas/:saga/episode/:episode', diff --git a/src/app/pages/sagas/list-episodes/list-episodes-routing.module.ts b/src/app/pages/sagas/list-episodes/list-episodes-routing.module.ts index cdb5531..da6df5b 100644 --- a/src/app/pages/sagas/list-episodes/list-episodes-routing.module.ts +++ b/src/app/pages/sagas/list-episodes/list-episodes-routing.module.ts @@ -1,12 +1,12 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; -import { ListSeasonsPage } from './list-episodes.page'; +import { ListEpisodesPage } from './list-episodes.page'; const routes: Routes = [ { path: '', - component: ListSeasonsPage + component: ListEpisodesPage } ]; @@ -14,4 +14,4 @@ const routes: Routes = [ imports: [RouterModule.forChild(routes)], exports: [RouterModule], }) -export class ListSeasonsPageRoutingModule {} +export class ListEpisodesPageRoutingModule {} diff --git a/src/app/pages/sagas/list-episodes/list-episodes.module.ts b/src/app/pages/sagas/list-episodes/list-episodes.module.ts index 9ef12e1..f5a2b37 100644 --- a/src/app/pages/sagas/list-episodes/list-episodes.module.ts +++ b/src/app/pages/sagas/list-episodes/list-episodes.module.ts @@ -4,17 +4,17 @@ import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; -import { ListSeasonsPageRoutingModule } from './list-episodes-routing.module'; +import { ListEpisodesPageRoutingModule } from './list-episodes-routing.module'; -import { ListSeasonsPage } from './list-episodes.page'; +import { ListEpisodesPage } from './list-episodes.page'; @NgModule({ imports: [ CommonModule, FormsModule, IonicModule, - ListSeasonsPageRoutingModule + ListEpisodesPageRoutingModule ], - declarations: [ListSeasonsPage] + declarations: [ListEpisodesPage] }) -export class ListSeasonsPageModule {} +export class ListEpisodesPageModule {} diff --git a/src/app/pages/sagas/list-episodes/list-episodes.page.spec.ts b/src/app/pages/sagas/list-episodes/list-episodes.page.spec.ts index 68c6d3c..69323b5 100644 --- a/src/app/pages/sagas/list-episodes/list-episodes.page.spec.ts +++ b/src/app/pages/sagas/list-episodes/list-episodes.page.spec.ts @@ -1,19 +1,19 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { IonicModule } from '@ionic/angular'; -import { ListSeasonsPage } from './list-episodes.page'; +import { ListEpisodesPage } from './list-episodes.page'; -describe('ListSeasonsPage', () => { - let component: ListSeasonsPage; - let fixture: ComponentFixture; +describe('ListEpisodesPage', () => { + let component: ListEpisodesPage; + let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - declarations: [ ListSeasonsPage ], + declarations: [ ListEpisodesPage ], imports: [IonicModule.forRoot()] }).compileComponents(); - fixture = TestBed.createComponent(ListSeasonsPage); + fixture = TestBed.createComponent(ListEpisodesPage); component = fixture.componentInstance; fixture.detectChanges(); })); diff --git a/src/app/pages/sagas/list-episodes/list-episodes.page.ts b/src/app/pages/sagas/list-episodes/list-episodes.page.ts index 65e0a72..e370062 100644 --- a/src/app/pages/sagas/list-episodes/list-episodes.page.ts +++ b/src/app/pages/sagas/list-episodes/list-episodes.page.ts @@ -16,14 +16,14 @@ import { SeasonService } from 'src/app/services/seasons/season.service'; templateUrl: './list-episodes.page.html', styleUrls: ['./list-episodes.page.scss'], }) -export class ListSeasonsPage implements OnInit { +export class ListEpisodesPage implements OnInit { public item: Saga = new Saga(); constructor( private activatedRoute: ActivatedRoute, public loadingController: LoadingController, - private authService: AuthService, + public authService: AuthService, public configService: ConfigService, private episodeService: EpisodesService, private sagaService: SagaService,