Category "angular"

Spring Boot - The 'Access-Control-Allow-Origin' header contains multiple values but expect only one

I read all posts on StackOverflow on this topic but did not find answer as they all are about difference scenario than mine. My spring boot API uses Spring Secu

Angular interceptor exclude specific urls

I am writing interceptors such that I don't have to handle the headers in every service calling my web api. The problem with this is that 99% of my calls requir

How can I call all the signal R events without explicitly invoking them using hubconnection.On method

We have a API with SignalR implementation for chat, reminder and so on. I want to invoke all of methods on my client portal that's on angular without passing hu

Angular Unit Test for Http Error Interceptor not working

I have following http error interceptor: @Injectable() export class HttpErrorInterceptor implements HttpInterceptor { constructor(private util: UtilService,

Not able to catch 401 status code in Angular 7 HTTP Interceptor

I am using Angular 7 and I have used HTTP Interceptor in my application. I am not able to track 401 status code in that HTTP Interceptor. I tried pitting cat

Angular 10 - Not to trigger (click) function on dragging

I have a div with an openlayers map like this: <div id="map" (click)="getInfo($event)" class="map"></div> I use dragging with my mouse to navigat

Angular drop down giving same value for other two options in mat form

I am trying to get selected option in angular through below code. But when I select 1 drop down option then other two gets same as shown in pic. How can I fix t

NullInjectorError: No provider for InjectionToken angularfire2.app.options

I'm trying to insert the form data in cloud Firestore database. Below is my x.component.ts file in which I'm getting error at constructor where I'm writing priv

Ionic keyboard.isVisible property does not control element visibility properly

After many years of reading your answers I have my first question. SITUATION In Ionic Angular (v5.3.1) mobile application I'm trying to do simple task - hide el

Lazy Loading, no chunks - Angular 7

I'm trying to do Lazy Loading, and followed the steps in the official docs of angular. The problem is that there is no chunks that is showing. Is there any ste

display div on top of ngx-mapboxgl map

I'm trying to use ngx-mapbox-gl in an angular 7 app for the first time and am experiencing something strange with the map. I want to display some text and a but

Dualboot Angular13 and Angular1: cannot downgrade injectable services with parameters

I have dual boot with Angular 13 and Angular 1. The app is built with webpack v5. The tsconfig has key "emitDecoratorMetadata":true. After install I run NGCC on

Error Uncaught TypeError: e.target.className.indexOf is not a function at HTMLDocument.mouseup (translator.js:433) in angular

I have one modal bootstrap, when i click in one svg to edit my data i receive: Uncaught TypeError: e.target.className.indexOf is not a function at HTMLDoc

How to detect browser close event or tab close event in angular 6+?

I have written @HostListener in my AppComponent Class to detect browser close or tab close. I have written this code but it is not working. Kindly help me unde

Why Intro js disableInteraction doesn't work

I have created a tour and I want the items highlighted to be clickable so I added attribute disable interaction to the tour but the items are still not clickabl

Dynamically Add tabPanel to tabView in PrimeNg

I wanted to have a 'Add Tab' button, on clicking that button i want to add a new Tab(tabPanel) to existing list of tabView. Till now i am able to achieve the ad

Dynamically Change colour/css styling of Disabled text boxes based on boolean value

<label [invalid]="false" invalidText="" placeholder="Placeholder text"> Middle names (optional) <input ibmText [attr.disabled]="isApplicationLo

How to disable "Leave site?. Changes you made may not be saved" pop up in angular?

I'm trying to close the browser after I have reached a order confirmation page and it throws a alert as shown below. This creates a misconception to user that h

How to implement Implicit Flow for Angular application using IdentityServer4

I have been reading the Quickstart from IdentityServer4 and still have some doubts on how to implement the Implicit flow for a SPA. My setup is the following:

textarea with angular material not size properly on launching page

I'm facing a weird issue that I cannot understand. When one of my page is displaying I have my textarea cut as we can see in this image But when I resize just