Pages: make genres page
This commit is contained in:
parent
13153fc9d4
commit
747e733574
5 changed files with 40 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
];
|
||||
|
|
|
|||
0
src/pages/genres/genres.component.css
Normal file
0
src/pages/genres/genres.component.css
Normal file
1
src/pages/genres/genres.component.html
Normal file
1
src/pages/genres/genres.component.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<p>genres works!</p>
|
||||
23
src/pages/genres/genres.component.spec.ts
Normal file
23
src/pages/genres/genres.component.spec.ts
Normal 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();
|
||||
});
|
||||
});
|
||||
11
src/pages/genres/genres.component.ts
Normal file
11
src/pages/genres/genres.component.ts
Normal 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 {
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue