Username | 6 |Active roles | 7 |8 | |
---|---|---|
{{user.username}} | 14 |{{user.roles}} | 15 |16 | |
Note: If you are seeing this error then angular is not to blame!
5 |What to do next?
6 |Following is the stack trace - check the first 2 12 | lines this tells you exactly which line of code caused the problem!
13 |
14 | {{error.details}}
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/client/src/app/errors/server-error/server-error.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 | import { Router } from '@angular/router';
3 |
4 | @Component({
5 | selector: 'app-server-error',
6 | standalone: true,
7 | imports: [],
8 | templateUrl: './server-error.component.html',
9 | styleUrl: './server-error.component.css'
10 | })
11 | export class ServerErrorComponent {
12 | error: any;
13 |
14 | constructor(private router: Router) {
15 | const navigation = this.router.getCurrentNavigation();
16 | this.error = navigation?.extras?.state?.['error'];
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/client/src/app/errors/test-errors/test-errors.component.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TryCatchLearn/DatingApp-net8/2eea23da5a17b9c89c2278086221d0a6f0d4ef66/client/src/app/errors/test-errors/test-errors.component.css
--------------------------------------------------------------------------------
/client/src/app/errors/test-errors/test-errors.component.html:
--------------------------------------------------------------------------------
1 | Come on in to view your matches... all you need to do is sign up!
7 |{{member().city}}
31 |{{member.city}}, {{member.country}}
16 |{{member.age}}
20 |{{member.lastActive | timeago}}
24 |{{member.created | date: 'dd MMM yyyy'}}
28 |{{member.introduction}}
44 |{{member.lookingFor}}
46 |{{member.interests}}
50 |Information: 10 | You have made changes. Any unsaved changes will be lost
11 |{{member.city}}, {{member.country}}
25 |{{member.age}}
29 |{{member.lastActive | timeago}}
33 |{{member.created | date: 'longDate'}}
37 |No messages yet
5 | } @else { 6 |{{message.content}}
33 |Queue length: {{ uploader?.queue?.length }}
54 | 55 |Name | 59 |Size | 60 |
---|---|
{{ item?.file?.name }} | 65 |{{ item?.file?.size/1024/1024 | number:'.2' }} MB | 66 |
Message | 27 |From / To | 28 |Sent / Received | 29 |30 | |
---|---|---|---|
{{message.content}} | 36 |
37 |
38 |
48 | |
49 | {{message.messageSent | timeago}} | 50 |51 | |
{{message}}
6 |