Pages: make genres page

This commit is contained in:
Toast 2025-02-07 14:12:05 +01:00
parent 13153fc9d4
commit 747e733574
5 changed files with 40 additions and 0 deletions

View file

@ -1,5 +1,6 @@
import {Routes} from '@angular/router';
import {ShowsComponent} from '../pages/shows/shows.component';
import {GenresComponent} from '../pages/genres/genres.component';
export const routes: Routes = [
{
@ -10,5 +11,9 @@ export const routes: Routes = [
{
path: 'shows',
component: ShowsComponent
},
{
path: 'genres',
component: GenresComponent
}
];

View file

View file

@ -0,0 +1 @@
<p>genres works!</p>

View file

@ -0,0 +1,23 @@
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {GenresComponent} from './genres.component';
describe('CategoriesComponent', () => {
let component: GenresComponent;
let fixture: ComponentFixture<GenresComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [GenresComponent]
})
.compileComponents();
fixture = TestBed.createComponent(GenresComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,11 @@
import {Component} from '@angular/core';
@Component({
selector: 'app-genres',
imports: [],
templateUrl: './genres.component.html',
styleUrl: './genres.component.css'
})
export class GenresComponent {
}