Category "angular"

Translate mat-tab with i18n

I am using angular material tabs and I would like to know how could I translate the text of the tag using i18n. The structure of the tab is as follows: <mat-

Error: Export of name 'ngModel' not found

After building my angular project i get the error: Error: Export of name 'ngModel' not found! I have my UI running in a docker container not even sure where

Angular Material custom form field doesn't show mat-error

I thought I have almost the same example but somehow the control tricks me :-/ <form [formGroup]="form"> <app-ref-urlcheck [maxLen]="20" formContro

How can I format the Angular Material datepicker without moment.js dependency

What do I want to achieve? I want my Angular Material(v11) datepicker to use the DD-MM-YYYY format in an Angular version 11 project. What have I tried? I tried

Angular - Count all dates per month & return month & count array

Basically counting records per month, where each record has a Create Date. Need an array that contains month name + count as variables. Only managed to do it wi

Suggested architecture for a project with 2 Frontend applications (Blazor Server and Angular) with EFCore, Identity, Mediatr

I am currently working on a school project with a classmate. We've decided on making the classic setup of an Administration-client (Blazor Server) and a Member-

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