306,830 questions
0
votes
0
answers
17
views
Hook to lifecycle event of angular-material component of child
I am implementing a component with an array of elements and there is a *for directive in the component that is connected to the array.
The array is dynamic and the loop renders mat-expansion-panel for ...
0
votes
0
answers
8
views
Angular i18n translation for enum values [duplicate]
export enum Role {
MANAGER = 'Manager',
CONSULTANT = 'Consultant',
CONTRACTOR = 'Contractor'
}
I want to be able to add translations for these strings; to add i18n tags and then generate ...
0
votes
0
answers
33
views
Angular login request stays pending when authenticating using token (ASP.NET Core Identity + cookies + CORS)
During debugging, the API request functions correctly. However, when executed in the browser, the request remains in a pending state. The issue appears only when navigating from y.com to x.com—in that ...
-1
votes
0
answers
20
views
Ionic app gives net::err_ssl_protocol_error in android but works fine in ng serve in browser
I have an angular ionic app, with a laravel backend api, it works fine in browser and the api in reachable and the ssl in configured with let's encrypt in nginx ans it's tls 1.3, idk what im doing ...
Advice
0
votes
1
replies
34
views
Handling and error checking with RxJs HTTP calls
I'm working with Angular 21 and I've added an interceptor like this:
export const httpErrorInterceptor: HttpInterceptorFn = (req, next) => {
return next(req).pipe(
catchError((error: ...
Best practices
0
votes
4
replies
124
views
How can we use AI, and what is the main purpose?
My meanings and thoughts are related to pure purpose. Also, in a particular case, what about the JavaScript project?. Best practices to integrate. Can we use it in old projects, or is the best way to ...
1
vote
1
answer
22
views
How to prevent Ngb Popover from closing
I implemented a NgbPopover like this:
<ng-template #themepopover>
<!-- popover content -->
</ng-template>
<button class="btn" [ngbPopover]="themepopover" container="body" ...
Advice
0
votes
2
replies
71
views
Risks of using Java 25 LTS versus Java 21 LTS in a new Spring Boot backend
I’m starting an inventory system: multi-branch, reporting, invoicing, which I plan to maintain for several years.
Tentative stack:
Backend: Java + Spring Boot
DB: PostgreSQL
Interface: Angular 21
But ...
2
votes
1
answer
34
views
How to resolved "Could not resolve 'primeng/resources/primeng.css'" while migrating PrimeNG from v17 to v18
I actually migrated my Angular app from 17 to 18. I use PrimeNG, but I have some errors with the PrimeNG style.
In PrimeNG 18, primeng/resources/primeng.css is not found, so I don't know how I can ...
Best practices
0
votes
4
replies
62
views
Can i use *ngIf with [ngTemplateOutlet] on same <ng-container>?
I know it works, I've used this combination many times before, but is it right? What about best practices?
What i meen:
<button (click)="onBtnClick()">toggle</button>
<ng-...
0
votes
1
answer
62
views
Errors in unit tests after updating to Angular v21
After updating an existing app with Zone change detection to Angular v21, I got a lot of errors in the unit tests. I'm getting some NG0100: ExpressionChangedAfterItHasBeenCheckedError errors, but also ...
Tooling
0
votes
1
replies
34
views
Angular: How to Store Text Highlights in a PDF Viewer and Navigate Back to Them Later
Question
I’m using ngx-extended-pdf-viewer to render PDFs inside an Angular application. I need to let users highlight text in the PDF, save those highlights as “references”, and later click a ...
Best practices
1
vote
1
replies
48
views
Angular Signals Objects with Forms
I have the following in an older Angular app.
newTask: Task = { id: 0, description: '',
completed: false, priority: Priority.Normal };
<div>
<input [(ngModel)]="...
-3
votes
0
answers
31
views
request is not generating properly for websocket | Angular
getLiveGraph(uid: number, timeOut: number) {
const config = this.configStore.getData();
return webSocket<LiveGraph>(
`${config.wsBaseUrl}/subscriber/${uid}/live_graph/${timeOut}`
...
0
votes
0
answers
17
views
VS Code Chrome Debugger Opens Wrong File Path
I'm trying to debug an Angular application in VS Code using Chrome DevTools Protocol, but the debugger is opening files in the wrong location due to URL path mapping issues.
Angular dev server running ...