306,808 questions
0
votes
0
answers
4
views
Angular Interceptor - retrieve Graphql query or mutation name
Good morning everyone,
I would need your help to retrieve the query or mutation name within the interceptor which is working fine.
import { HttpContextToken, HttpInterceptorFn } from '@angular/common/...
0
votes
0
answers
3
views
I have a problem with using the Leaflet features in my Angular component
i want to use leaflet in my project with all of this library features.
this is my code which shows the map with distance feature but draw and easyprint features does not work and there is no anything ...
1
vote
0
answers
18
views
How to generate dynamic metadata from an Angular component using node js?
I want to create a library with components example pages generated automatically by a node js code.
Using some Copilot help, I got this function to read the component's metadata, but it is returning ...
-1
votes
1
answer
47
views
How can we bulk remove unused class names from my component's imports array?
In Angular 19 we now get warnings about unused imports. (unused classes in the imports array).
The blog post says "auto remove"
Additionally, the Angular language service will highlight ...
1
vote
1
answer
28
views
in Angular Signals, can you use viewChild() + effect() to handle changes to a child element?
Let's say I want to know when a particular child element in my component is scrolled. Suppose I declare:
contentPanel = viewChild.required<ElementRef>('contentPanel');
contentScrollTop = ...
1
vote
1
answer
33
views
default route resolver (Angular)
I'm trying to set some state in our NgRx Store for specific pages (I'll cause these POI - "page of interest"). If not one of those pages, I would like to set the Store to a default value. We ...
0
votes
0
answers
34
views
Angular 19: SSR + Lazyloading - Are there any resources?
I have recently upgraded my v17 production app to v19 for partial SSR.
The upgrade went well. The good:
Angular added ssr and updated the angular.json and needed server files
I added routes to the ...
0
votes
1
answer
45
views
How to update a component in Angular using a backend request, without refreshing the page?
I want to update my heart icon, which bound to every product, to add to favourites.
<i class="fa-regular fa-heart" *ngIf="!isFavourite"></i>
<i class="fa-...
1
vote
1
answer
16
views
Change routes when child component activate
I want to do a login page with password reset page. In the page, only a tiny part of the page will change when i click on "reset password" so the view will be like this :
Login page:
<div ...
0
votes
1
answer
47
views
Insert DOM element on the specific index of parent DIV
There is a DIV in Angular template:
<div #parent [innerHTML]="content"></div>
and in .ts file
let content = 'test1 test2 test3'
Now I'm creating new DIV:
const newDiv = this....
0
votes
0
answers
15
views
"grapesjs-tabs" is not working in https://grapesjs.com/demo website [closed]
please note, "grapesjs-tabs" is not working in https://grapesjs.com/demo website.
also, i installed "grapesjs-tabs" in angular and tried in local, it is not working as expected.
...
3
votes
1
answer
44
views
NX 20.2.2 + Angular 19 + Ionic 8 + Jest : Broken tests following latest updates
I have been maintaining Ionic-Angular applications within an NX monorepo (without nxtend/nxext) for a while and it's been going well so far.
However, the last migration to NX 20.2.2 + Angular 19 has ...
0
votes
0
answers
13
views
jhipster angular compiled successfully, but AggregateError
PREVIOUS ANSWERS DONT WORK SO ITS NOT ALREADY ANSWERED, there are SO answers suggesting to use earlier downgrade node. jhipster8 build successful, then AggregateError which says,
As mentioned in a ...
1
vote
0
answers
25
views
VSCode update to 1.96.0 / Libs paths in Nx Monorepo are not recognized
I am not sure where exactly the issue is, however just by elimination I think it is VS Code and not Nx, Typescript or Angular, as I have only restarted VSC and it updated itself to the newer version ...
1
vote
0
answers
24
views
Issue when sharing file and text - Only shows text in email
when i am sharing file with WebShare Api its not showing the text while sharing the file its showing text only in email
const file = new File([this.pdfBlobforData], `${name}.pdf`, {
type: '...