Skip to content

Commit 2342353

Browse files
authored
Merge pull request #529 from PermanentOrg/v3-setup
Create "v3" section of the app
2 parents c0882b0 + 8cb461c commit 2342353

File tree

7 files changed

+62
-0
lines changed

7 files changed

+62
-0
lines changed

src/app/app.routes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ const routes: RoutesWithData = [
141141
},
142142
{ path: 'm/embed', redirectTo: 'app/embed' },
143143
{ path: 'm/pledge', redirectTo: 'app/pledge' },
144+
{
145+
path: 'app/v3',
146+
loadChildren: () => import('./v3/v3.module').then((m) => m.V3Module),
147+
},
144148
{
145149
path: '',
146150
loadChildren: () =>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>v3-root works!</p>

src/app/v3/components/v3-root/v3-root.component.scss

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

src/app/v3/v3.module.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { NgModule } from '@angular/core';
2+
import { CommonModule } from '@angular/common';
3+
import { V3RootComponent } from './components/v3-root/v3-root.component';
4+
import { V3RoutingModule } from './v3.routes';
5+
6+
@NgModule({
7+
declarations: [V3RootComponent],
8+
exports: [V3RootComponent],
9+
imports: [CommonModule, V3RoutingModule],
10+
})
11+
export class V3Module {}

src/app/v3/v3.routes.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { RouterModule, Routes } from '@angular/router';
3+
import { V3RootComponent } from './components/v3-root/v3-root.component';
4+
5+
const routes: Routes = [
6+
{
7+
path: '',
8+
component: V3RootComponent,
9+
},
10+
];
11+
12+
@NgModule({
13+
imports: [RouterModule.forChild(routes)],
14+
exports: [RouterModule],
15+
})
16+
export class V3RoutingModule {}

0 commit comments

Comments
 (0)