Skip to content

Commit a4523ba

Browse files
committed
wip(elections/upcoming): added the route and components
1 parent 7e723c1 commit a4523ba

5 files changed

Lines changed: 37 additions & 1 deletion

File tree

src/app/app.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const routes: Routes = [
100100
{
101101
path: 'elections/upcoming',
102102
loadComponent: () =>
103-
import('./pages/elections/elections.component').then(m => m.ElectionsComponent),
103+
import('./pages/elections/upcoming/upcoming.component').then(m => m.UpcomingComponent),
104104
title: makeTitle('Elections'),
105105
data: {
106106
description: 'Learn about the responsibilities of our executives and how you can become one.'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>upcoming works!</p>

src/app/pages/elections/upcoming/upcoming.component.scss

Whitespace-only changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { UpcomingComponent } from './upcoming.component';
4+
5+
describe('UpcomingComponent', () => {
6+
let component: UpcomingComponent;
7+
let fixture: ComponentFixture<UpcomingComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
imports: [UpcomingComponent]
12+
})
13+
.compileComponents();
14+
15+
fixture = TestBed.createComponent(UpcomingComponent);
16+
component = fixture.componentInstance;
17+
fixture.detectChanges();
18+
});
19+
20+
it('should create', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { ChangeDetectionStrategy, Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'cs-upcoming',
5+
imports: [],
6+
templateUrl: './upcoming.component.html',
7+
styleUrl: './upcoming.component.scss',
8+
changeDetection: ChangeDetectionStrategy.OnPush
9+
})
10+
export class UpcomingComponent {
11+
12+
}

0 commit comments

Comments
 (0)