Initial share route

This commit is contained in:
Daniel Ponte 2025-01-22 22:58:24 -05:00
parent 5ac0af92f1
commit 4e37e14a96
5 changed files with 40 additions and 0 deletions

View file

@ -8,6 +8,11 @@ export const routes: Routes = [
loadComponent: () =>
import('./login/login.component').then((m) => m.LoginComponent),
},
{
path: 's/:id',
loadComponent: () =>
import('./share/share.component').then((m) => m.ShareComponent),
},
{
path: '',
canActivateChild: [AuthGuard],

View file

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

View file

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