Initial share route
This commit is contained in:
parent
5ac0af92f1
commit
4e37e14a96
5 changed files with 40 additions and 0 deletions
|
@ -8,6 +8,11 @@ export const routes: Routes = [
|
||||||
loadComponent: () =>
|
loadComponent: () =>
|
||||||
import('./login/login.component').then((m) => m.LoginComponent),
|
import('./login/login.component').then((m) => m.LoginComponent),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 's/:id',
|
||||||
|
loadComponent: () =>
|
||||||
|
import('./share/share.component').then((m) => m.ShareComponent),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
canActivateChild: [AuthGuard],
|
canActivateChild: [AuthGuard],
|
||||||
|
|
1
client/stillbox/src/app/share/share.component.html
Normal file
1
client/stillbox/src/app/share/share.component.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<p>share works!</p>
|
0
client/stillbox/src/app/share/share.component.scss
Normal file
0
client/stillbox/src/app/share/share.component.scss
Normal file
23
client/stillbox/src/app/share/share.component.spec.ts
Normal file
23
client/stillbox/src/app/share/share.component.spec.ts
Normal 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();
|
||||||
|
});
|
||||||
|
});
|
11
client/stillbox/src/app/share/share.component.ts
Normal file
11
client/stillbox/src/app/share/share.component.ts
Normal 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 {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue