-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathhome.component.ts
More file actions
26 lines (25 loc) · 918 Bytes
/
home.component.ts
File metadata and controls
26 lines (25 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { Component } from '@angular/core';
import { RouterLink } from '@angular/router';
@Component({
selector: 'app-home',
standalone: true,
imports: [RouterLink],
template: `
<main>
<h1>Welcome to Sentry's Angular 17 E2E test app</h1>
<ul>
<li><a id="navLink" [routerLink]="['/users', '123']">Visit User 123</a></li>
<li><a id="redirectLink" [routerLink]="['/redirect1']">Redirect</a></li>
<li><a id="cancelLink" [routerLink]="['/cancel']">Cancel</a></li>
<li><a id="nonExistentLink" [routerLink]="['/non-existent']">Error</a></li>
<li><a id="componentTracking" [routerLink]="['/component-tracking']">Component Tracking</a></li>
</ul>
<button id="errorBtn" (click)="throwError()">Throw error</button>
</main>
`,
})
export class HomeComponent {
throwError() {
throw new Error('Error thrown from Angular 17 E2E test app');
}
}