boilerplate report page
This commit is contained in:
parent
5f0f80a7cd
commit
8d9a49c337
5 changed files with 69 additions and 10 deletions
|
|
@ -1,11 +1,13 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { HomeComponent } from './home.component';
|
||||
import { ReportComponent } from './report.component';
|
||||
import { ThanksComponent } from './thanks.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', component: HomeComponent },
|
||||
{ path: 'thanks', component: ThanksComponent }
|
||||
{ path: 'thanks', component: ThanksComponent },
|
||||
{ path: 'report', component: ReportComponent }
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import { SignComponent } from './sign.component';
|
|||
import { ThanksComponent } from './thanks.component';
|
||||
import { AppRoutingModule } from './app-routing.module';
|
||||
import { HomeComponent } from './home.component';
|
||||
import { ReportComponent } from './report.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
|
@ -24,6 +25,7 @@ import { HomeComponent } from './home.component';
|
|||
SignComponent,
|
||||
ThanksComponent,
|
||||
HomeComponent,
|
||||
ReportComponent,
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ import { checkin, checkout } from "src/assets/forms";
|
|||
|
||||
<app-form *ngIf="action=='checkout'" [template]="checkout"></app-form>
|
||||
|
||||
<a routerLink="/report">Go To Report Page</a>
|
||||
|
||||
<footer>Accenture | 2022</footer>
|
||||
`
|
||||
})
|
||||
|
|
|
|||
53
src/app/report.component.ts
Normal file
53
src/app/report.component.ts
Normal file
File diff suppressed because one or more lines are too long
18
src/types.d.ts
vendored
18
src/types.d.ts
vendored
|
|
@ -1,11 +1,3 @@
|
|||
declare interface TextOptions {
|
||||
modifier: string;
|
||||
}
|
||||
|
||||
declare interface RadioOptions {
|
||||
choices: string[];
|
||||
}
|
||||
|
||||
declare interface Field {
|
||||
type: string;
|
||||
id: string;
|
||||
|
|
@ -26,4 +18,12 @@ declare interface Form {
|
|||
goto: string;
|
||||
step: number;
|
||||
steps: Step[];
|
||||
}
|
||||
}
|
||||
|
||||
declare interface Entry {
|
||||
name: string;
|
||||
eid: string;
|
||||
asset: string;
|
||||
complete: boolean;
|
||||
photo: string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue