307,071 questions
1
vote
0
answers
9
views
@microsoft/signalr with transport protocol longpolling the content-type is text/plain not json
In the newest verions 8.0.7 of @microsoft/signalr the longpolling content-type is text/plain and in the payload there is json
This is the handshake:
It should be application/json right or how can I ...
0
votes
1
answer
10
views
Invalid response content-type on logout with oidc-client-ts in Angular
I am trying to connect to a new OAuth Identity Provider from my Angular app. The logout is implemented with an userManager.signoutRedirect() call to UserManager provided by oidc-client-ts.
Logout ...
0
votes
0
answers
6
views
Power BI Embed token refresh
I have embedded a PowerBI report using 'User owns data' concept. It's working as expected.
After 60 minutes the token expires regardless of user is active on the report or not. I added a setInterval ...
0
votes
0
answers
13
views
Authenticating API Calls from Front-End Angular Application Using Azure AD B2C (Without User auth)
I have a front-end Angular application and need to authenticate API calls using Azure AD B2C. My front end spa app is registered as a public client, and I want to authenticate and acquire tokens for ...
-1
votes
0
answers
14
views
Getting error while hosting the .net and angular app into the IIS local server
I have allowed the cors policy in my program.cs file and into the frontned i am using 2 different environment files just lilke environment.prod.ts and environment.ts which basically are for the ...
0
votes
0
answers
23
views
Problem with "prerender": false. Angular 19 SSR
After building Angular 19 application with SSR and with "prerender": false parameter running the application node dist/app_name/server/server.mjs there is an error occurs.
Error: Angular ...
0
votes
1
answer
34
views
Input is sliding down below android keyboard when new div is added above
Example On Stackblitz
In my minimal example, when the new "typing..." div is added to the dom, the input goes down, hiding behind the android keyboard a little. Here is a gif showing this, ...
1
vote
1
answer
23
views
Using React Flow in Angular, Can Not Render Properly
I created a TSX react flow app with wrapper tsx that extends HTMLElement (unfortunately bunch of ai code that i did not go through much.)
I bundled it with npx webpack command and got a single js file ...
-6
votes
1
answer
42
views
Upto Angular 18 what were the different methods of handling asynchronous API calls, why was the resource API introduced? [closed]
I have installed angular 19 and the guide mentions about the new API method called resource.
I want to understand what value it brings to angular with respect to signals.
What was the problems with ...
0
votes
0
answers
27
views
error NG6002: 'AngularImageViewerModule' does not appear to be an NgModule class
I'm using Angular x-image-viewer to view images. After updating from Angular 16 to Angular 19, I encountered this error. I'm not sure if it's related to Angular 19, as I got the same error in Angular ...
1
vote
0
answers
33
views
Is there any way to access Angular router information from the LocationStrategy?
I'm currently trying to extend the functionality of Angular's PathLocationStrategy to set the navigation state of the browser based on the state passed during a Router.navigate() event.
I keep getting ...
0
votes
0
answers
50
views
Indexing nested functions inside a javascript function?
Angular has effects and example is this:
effect(() => {
console.log(`The current count is: ${count()}`);
});
And this causes the effect to fire whenever count is is changed.
So that means that ...
0
votes
1
answer
36
views
Unable to type inside contenteditable span
I have a parent contenteditable div. Inside it I have a child contenteditable span element. Now, what I want is when my div is empty and I click inside the div. I want the cursor to be such that the ...
-1
votes
0
answers
17
views
Is this a properly-configured eslint.config.js file for an Angular project? [closed]
I've had a hard time finding a good example of a well-configured eslint.config.js file for an Angular project. Through some trial and error, I managed to put this together. The right thing appears to ...
1
vote
1
answer
31
views
Display/Edit a number in hex format
Is there any built in way with Angular to use a Number type in my model as Hex Value in the HTML for Displaying and Editing?
I have this type in my model:
bitmask: number = 0;
Which should now be ...
0
votes
1
answer
27
views
Unable to access web application after containerization
I'm relatively new docker so I'm pretty sure I'm not doing something right. I have a Angular application, with .Net as the back end api. It works fine when I run it using Visual Studio, however it ...
0
votes
1
answer
43
views
angular serve index.html from other origin than rest of application
This is a bit of an exotic question, and maybe it's completely impossible.
The idea is this: I'd like to serve the index.html from another domain than the rest of the applications code. So you'd go to ...
1
vote
1
answer
40
views
Make Angular application Zoneless (remove ZoneJS)
I was wondering how exactly should I ensure that my Angular app is running zoneless?
Using only signal with ChangeDetection.OnPush is enough?
1
vote
0
answers
26
views
Load styles in Ionic dynamically from a file downloaded via http
First, sorry for my English...
I'm trying to develop an app with standalone Angular/Ionic using Capacitor. I would like it to have pre-established styles by default and for them to be declared in my ...
0
votes
0
answers
30
views
integrate an angular app in another front end website in another domain [closed]
I have an angular app and another company wants to use this angular project in their site what is the best way to do that?
I have tried the iframe but I read more about it and a lot said it is not the ...
1
vote
0
answers
31
views
Generate material 3 palette
When I am using the command to generate a theme (ng generate @angular/material:theme-color), then I get a palette, but the primary color (default key 50) is far off from the color I inputted. The most ...
-1
votes
0
answers
70
views
What is the use of assigning "let item" to a structural directive in angular [closed]
I am trying to understand the code found on internet link here. Its about structural directive in angular. I can't understand what this particular peace of code it doing (extract from AppComponent):
.....
0
votes
1
answer
37
views
ngx-bootstrap modal onhide callback never executes
somewhat of an Angular newbie here -- so please be gentle. I am using Angular 16 and the Angular Bootstrap library. I'd like to create a modal to manage users for the application -- I get the user ...
1
vote
1
answer
41
views
Component is rendering beneath the Home component
I have angular 19 website, in this website, I have used routerLink directive in my header component to navigate between the pages. Now when i am starting my development server and navigating first ...
-1
votes
0
answers
40
views
Getting 503 service unavailable error while uploading excel file [closed]
In my system I am uploading excel file into system but when I am trying to upload my excel file even though it is 1000 lines but still getting time out error.
I have created website using angular as ...
0
votes
0
answers
26
views
How can I give the already available color in my Echart Geomap
series: [
{
name: map_name,
type: "map",
map: map_name,
emphasis: {
...
1
vote
0
answers
41
views
Angular form array with Single Value Issue
**The for the react dynamic question, only the label is displayed (not the text box). There is a mismatch between the .ts and html. What should the constructor contact? *
***app.componet.html:***
&...
-3
votes
0
answers
25
views
In PrimeNG v16 (which aligns with Angular v16), does the input field floating label feature exist? [closed]
I am using Primeng version 16 because i am using Angular version 16 , Input field float label feature not there in primeng 16?I am not getting anywhere
Total Labour ...
1
vote
1
answer
39
views
First time and during refresh only API call should call and give response
API call should get called in home page during first time page load and during refresh,
If navigate from other page to home page, API response should not get update. give some idea how to handle this
...
-1
votes
2
answers
74
views
Cannot build docker image (Angular 19) and Tailwind 4
I'm developing a new Angular 19 application with Tailwind CSS 4. I've configured Tailwind according to the official Tailwind documentation, and everything works fine when running npm start and npm run ...
1
vote
1
answer
51
views
Angular unidirectional data flow and Angular Forms
I’m preparing a presentation on the topic of Angular state management for my colleagues. The main focus of the talk is creating “dumb” components which accept inputs from parent components, render ...
1
vote
1
answer
49
views
Angular Guard doesn't work when reloading page (v19)
Recently I have been through some trouble with my auth guard, which calls the API to check if current user is successfully logged in sending the auth cookie. This API returns a boolean value.
The ...
0
votes
0
answers
13
views
Canva scroll and descroll on cursor position as origin
I struggle for a few days on this issue. I have a video editing timeline in a canva as you can see : [](The numbers are the frame's number of the video)
I can zoom in and out in this timeline and ...
0
votes
0
answers
24
views
Why is ng-repeat not processed
I have been following some user guides / introduction videos, and am struggling to merge a couple of very basic concepts. I have trying to populate a SELECT using the ng-options but it seems its ...
0
votes
1
answer
25
views
How to mimic CURL Post using Angular HttpClient
I have some Angular code using HttpClient, and I simply want to use the "post" method, with a particular payload and headers, with the "toPromise()" option. Yes, I realize ...
1
vote
1
answer
33
views
How to create checkbox from the enum then get the selected enum value
I'm trying to create a few checkboxes from the enum.
export enum Tags {
Sword = <any>"Sword",
Claymore = <any>"Claymore",
Bow = <any>"Bow",
...
2
votes
0
answers
23
views
Angular Child Components Not Initializing Properly When Switching Tabs
I'm implementing a tabbed interface where tab names are fetched from an API, and child components are conditionally rendered based on the active tab. However, when switching tabs, the child components/...
1
vote
0
answers
11
views
How to import NX lib inside another lib?
I am using nx monorepo with angular. I have this in my tsconfig.base.json
compilerOptions": { "paths": { "@frontends/commons": ["libs/commons/src/index.ts"], "@...
0
votes
1
answer
36
views
Quill .ql-container extends size of quill-editor
I have a weird problem in which my child div extends beyond size of parent div
<div class="editor-container">
<quill-editor
[(ngModel)]="editorContent"
>
</...
0
votes
0
answers
8
views
Cannot force line wrap on ngx-quill
I am trying to implement ngx-quill in my Angular app however no matter what, I cannot force line wrap in div where text is being written
<div class="ql-editor ql-blank" contenteditable=&...
0
votes
2
answers
88
views
PrimeNg 19 styles don't work in Angular 19
I'm developing a project in Angular 19 and I installed PrimeNg 19 but the styles don't work, I imported the theme in my app.config.ts file but still the styles don't work.
Run npm i primeng primeicons ...
0
votes
0
answers
27
views
Issue Embedding S3 Presigned URL in ngx-doc-viewer
I'm trying to preview documents (.docx, .xlsx, .pdf) in my Angular application using ngx-doc-viewer. The documents are stored in Amazon S3, so I generate a presigned S3 URL and pass it to the viewer.
...
1
vote
1
answer
26
views
ngOnInit hasn't finished fetching data when ngAfterViewInit was ran
I have a code that looks like this. I expect that it will finish running fetchData function before calling ngAfterViewInit but its not. Do you have an idea what to check? Thank you!
@Component({
...
0
votes
1
answer
29
views
rxjs.Interval subscription not triggering changes in Angular
I am playing around with RxJS and Angular 19.1 and I run into a very strange behavior:
interval.component.ts
export class IntervalComponent {
count: string[] = [];
constructor (private cdr: ...
1
vote
0
answers
11
views
Customize Built-in Animation of NzModalService in NG-ZORRO v16.2.2?
I'm using NG-ZORRO v16.2.2, and I've noticed that when calling NzModalService.create(), the modal animation starts from the last click position. The modal appears to scale up from that point while ...
1
vote
1
answer
38
views
How to use PrimeNG Autocomplete with multiple selection in a FormArray?
I'm working on an Angular project where I need to implement a form that includes a FormArray with multiple FormControl instances, each using PrimeNG's Autocomplete component with multiple selection ...
1
vote
1
answer
22
views
What is the correct way to use optional peerDependencies in an Angular library?
I have an Angular library that contains a number of standalone components. Some of these components are dependent on third party libraries (angular2-draggable, @fortawesome/angular-fontawesome, etc.). ...
0
votes
0
answers
12
views
closing a dialog after using signal store
Is there any concern to close a dialog imediately after calling an RxMethod on my signal store to do a databse update?
The dialog is holding the injected store variable. Seems like it should be fine, ...
0
votes
0
answers
28
views
Sending events to EventHub using '@azure/event-hubs' gives error
I'm using Angular 19 and typescript to send an event to the EventHub from the browser. The npm package that I use is @azure/event-hubs. I'm not using server side node.js.
import {...
0
votes
1
answer
27
views
Angular Universal Metatags not updating at server when loading from service
When navigating to this route user/:username I load the user data from a service to render it, but when updating the metatags with that data for page's SEO, it does not update it at the server just ...