Skip to content

Commit

Permalink
fix: Rename ListEpisodesPage and update accessibility of authService
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomah committed Jun 15, 2022
1 parent b270ec0 commit e125467
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
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
}
];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class ListSeasonsPageRoutingModule {}
export class ListEpisodesPageRoutingModule {}
10 changes: 5 additions & 5 deletions src/app/pages/sagas/list-episodes/list-episodes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
12 changes: 6 additions & 6 deletions src/app/pages/sagas/list-episodes/list-episodes.page.spec.ts
Original file line number Diff line number Diff line change
@@ -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<ListSeasonsPage>;
describe('ListEpisodesPage', () => {
let component: ListEpisodesPage;
let fixture: ComponentFixture<ListEpisodesPage>;

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();
}));
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/sagas/list-episodes/list-episodes.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e125467

Please sign in to comment.