Add shows page and routes

This commit is contained in:
Toast 2025-01-28 11:14:21 +01:00
parent 5cf778e390
commit 77c22f70da
5 changed files with 47 additions and 1 deletions

View file

@ -1,3 +1,14 @@
import { Routes } from '@angular/router';
import {ShowsComponent} from '../pages/shows/shows.component';
export const routes: Routes = [];
export const routes: Routes = [
{
path: '',
redirectTo: 'shows',
pathMatch: "full"
},
{
path: 'shows',
component: ShowsComponent
}
];

View file

View file

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

View file

@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ShowsComponent } from './shows.component';
describe('ShowsComponent', () => {
let component: ShowsComponent;
let fixture: ComponentFixture<ShowsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ShowsComponent]
})
.compileComponents();
fixture = TestBed.createComponent(ShowsComponent);
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-shows',
imports: [],
templateUrl: './shows.component.html',
styleUrl: './shows.component.css'
})
export class ShowsComponent {
}