Questions tagged [angular14]

For questions regarding Angular specific to version 14. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.

536 questions
0
votes
1 answer

In Angular 14 and PrimeNG, how do I set the value of a radio button to be the key of an enum?

I'm using Angular 14. I have defined this enum ... export enum Color { RED = 'Red Color', BLUE = 'Blue Color' } I have a PrimeNg radio button where I want to set the value of the radio button to be the key of the enum (e.g. RED), so I…
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
1 answer

What is difference between return action & dispatch an action in NGRX effect

I would like to know which code is better and more optimized when handling complex logic in an NgRx effect. Most of the time, we break the effect logic into pieces of action. In this case, should we use dispatch action or return action? Which one is…
Surendranath Sonawane
  • 1,595
  • 1
  • 18
  • 24
0
votes
0 answers

How can i add merge icon(right shift) in all conflict text line in Angular Monaco Diff Editor

I am implementing the Angular Monaco diff editor where left and right side text are showing correct diff and also highlight correctly but text merge from let to right side only visible on empty text area where my requirement is to show this icon in…
Om Prakash
  • 793
  • 7
  • 14
0
votes
0 answers

How to recalls each observer streams with CombineLatest in Angular

How can I update/refetch accountModel$ latest values each time the component gets loaded? CLIENT_LIST import { InjectionToken, inject } from '@angular/core'; import { UserService } from '@app/core'; export const CLIENT_LIST = new…
Bimal Das
  • 1,882
  • 5
  • 28
  • 53
0
votes
0 answers

How to display the filename of a video/audio/doc file in edit form along with choose file button in angular?

I have an edit form with dropdown menu which contains options link, video, audio and document. There is a source column next to it where i want to display the path of each file selected from api. In case of link I want to display the link as it is,…
Greeshma G
  • 13
  • 4
0
votes
0 answers

ng test is not working after angular14 ugrade

I am receiving below error while I ran ng test after Angular14 Upgrade.: I got the the below post and removed the context from my test.ts file, and getting below error angular.json: "test": { "builder":…
Subburaj
  • 5,114
  • 10
  • 44
  • 87
0
votes
0 answers

Angular drag and drop is not working in an element with *ngFor directive

In the following code:
William
  • 332
  • 2
  • 10
  • 21
0
votes
1 answer

How i can send get request by using id as a query string route parameter from angular to Asp.Net Rest Api

I'm trying to send get request from angular to rest api by using id as a query string route parameter.In controller class i have a action method where i want to receive id as a query string route parameter but i don't know how i have to send request…
Junior Dev
  • 17
  • 6
0
votes
0 answers

Angular 14.2.11 with Docker Compose: How to fix ERR_EMPTY_RESPONSE on 'front.app.test'?

please if you can help me with this issue. I created a dockerfile.app: FROM node:16.10.0-alpine By default build image for production ARG BUILD_ENV=prod ARG USER_ID ARG GROUP_ID RUN apk update Re-map host user to www-data RUN if [ ${USER_ID:-0}…
0
votes
1 answer

Displaying photos in Angular from .NET

I am using .NET 6 as server-side, I have a class photo : public class Photo { public int Id { get; set; } public string FileName { get; set; } public byte[] Data { get; set; } public int UserId { get; set; } …
meytal
  • 1
  • 3
0
votes
0 answers

Where do I declare my Angular typed form when the labels depend on properties initialised in the constructor?

I have recently migrated to Angular 14 and I am trying to initialise a Typed Form following this guide. It is advising to declare the form directly in the class like so: @Component({ selector: 'login', templateUrl: './login.component.html', …
Ems
  • 67
  • 3
0
votes
0 answers

Having trouble using storybook 6.5.16 with Angular 14+

I am using 6.5.16 version of storybook to generate component documentation for angular. While we are able to generate Docs for angular component the Canvas doesn't render the component (though on inspection we can see the component…
Varad
  • 920
  • 10
  • 25
0
votes
1 answer

Module not found error. webpack not resolving path mapping in module federation angular application

I am having an angular 14 application and a library in the same repo. I am using "@angular-architects/module-federation": "^14.3.14" and introduced modular federation in my angular application. I mapped my library path in my tsconfig like…
0
votes
0 answers

Error on closing modal with content ngx-extended-pdf-viewer

I am calling a pdf document using ngx-extended-pdf-viewer in angular everything works fine until I close the modal. I get the following error ERROR TypeError: Cannot read properties of null (reading 'removeEventListener') at…
tiesgr
  • 3
  • 2
0
votes
1 answer

I'm trying to generate form control dynamically in angular forms & i'm facing that error in console "TypeError: feature_r5.get is not a function"

I'm trying to generate form controls dynamically on click of a button in Angular v14 html template i generate it but i'm facing that error in console. ERROR TypeError: feature_r5.get is not a function at PostAdvComponent_div_40_Template Html…
Junior Dev
  • 17
  • 6
Search... Mon