Category "angular"

How can I get data from service in Angular interceptor?

I want to add my authentication token in the request header in my auth.interceptor.ts and I'm keeping the authentication token value in my auth.service.ts. Here

Replacement of deprecated MediaQueryList.addListener() event in Angular 8

As the mozilla developers docs says MediaQueryList addListener is deprecated. I'm using it in my Angular 8. Though it's working it's linting warning in VS Code

Angular / Ionic mobile app ios does not fetch from Firebase using angularfire

I am trying to test a little Ionic/Angular sample app on an iOS Emulator. On the web, all the requests to firestore using angularfire work perfectly fine. Someh

Validation Error in FormGroup level not working

I have a custom validation in the FormGroup level as defined below: this.createForm = this.builder.group({ pass: this.builder.control('', [ Validato

FormsModule Not Working Properly in Different Module Than App Module

i have FormsModule present in SharedModule.. import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } fr

Angular karma code coverage report folder not generated

When I run ng test --code-coverage, The coverage report is sometimes not generating, sometimes it is generating so I'm unable to verify the coverage statement a

Why I got empty object on Angular route?

Why I got empty object from ActivatedRoute params and how to fix that? routeId$ = this.route.params.pipe( tap((params) => console.log(params)), // <

How to increase width of pTooltip in PrimeNG

I'm using PrimeNG's tooltip and am trying to make it wider when it has lots of text in it, but it is not responding to anything I try. I have tried using Prime

How to change display date of mat date picker in angular?

I am using reactive form and my normal date picker shows values like Now I only want to show month and year instead of '5/18/2022'. Is there a way to only chan

Signalr callbacks are run outside angular zone?

I have a strange problem with signalr and angular. We recently upgraded signalr to use the @microsoft/signalr package instead of the @aspnet/signalr one and we

How to check pending schedules in queue schedular of RxJS?

I am using this code in for loop: my purpose was to once I get response of 1st request then only it should execute second request then 3rd and so on. queueSche

Tooltip Wrap in Nebular Framework

I am working in the Akveo Nebular framework using the ngxAdmin core theme using tooltips as hints on complicated settings. I am needing the tooltip to wrap, how

Accessing assets folder in angular when deployed to Wildfly

So the main problem is when I deployed Angular app to wildfly, it tries to use assets-folder straight from the host, not from the host/pdv/assets. Failed to loa

How to use .slice().reverse() in *ngFor with | keyvalue?

I often use .slice().reverse() in *ngFor to display elements in reverse order. But now I have a problem, because I also use | keyvalue. How to use .slice().reve

Rendering Overlay Containers when theming Angular Material?

According to this tutorial we should be able to add the class needed to render the overlay container that backs Angular Material Select, Snackbar, etc. like thi

How to hide currency symbol in angular currency pipe

I'm trying to use Angular currency pipe and I wanted to remove the currency symbol all together from the formatted number, but it seems there is no option to do

Angular i18n with em and strong?

I'm preparing an application for internationalization with the @angular/localize library, so I'm going through and adding i18n attributes to fields that contain

How to check 2 conditions in angular ngif

I am little stuck trying to get this *ngIf to work correctly. What I am trying to do is show the div if it is empty only if the user viewing is owner. If the us

Angular grid with server side filtering, sorting and pagination?

I want to implement Angular grid with server side pagination, filtering and sorting> Ag grid provide these feature in enterprise edition only. Is there any o

Angular 10 - cannot force error using HttpClient delete()

so I'm following an Angular tutorial right now and in the error-handling-chapter I'm currently stuck because I cannot force an error to appear when feeding a Ht