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

Angular 14 - Passing the selected component from a list to a detail page

I have the following problem, I haven't been able to find a solution to this: I have a list of videos(they are played on the listing page) when I load a listing page
Mjeduar
  • 67
  • 1
  • 11
0
votes
1 answer

Variable is not updating after callback

updating an array after a callback, the variable value step is not really changing, just in the console. Right now I see not the problem why this is not working. HTML
Pascal
  • 370
  • 1
  • 3
  • 20
0
votes
1 answer

How directives can prevent a component to construct?

So I'm trying to create a directive that would work with feature flags, not sure if my idea is going in the right direction but what I want to achieve is to have logic that decides if a component should load or not, and make my entire app to follow…
Yogurtu
  • 2,656
  • 3
  • 23
  • 23
0
votes
0 answers

'this' implicitly has type 'any' because it does not have a type annotation how to overcome this error in angular 14

I am Using d3 heatmap with angular newer version in 14. i don't know how to use this keyword in my project. .attr('opacity', function(event:any): any { const myItem: any = this; const matchingSelected =…
Subash
  • 1
  • 2
0
votes
1 answer

how to create a filter pipe by number in angular

i want to create a filter pipe, which i can filter by number, because I will use it to filter by salary. I created the filter for string characters, but I don't know how it would be with numbers, because I'm new in this. here is my pipe import {…
0
votes
1 answer

EvalError with angular-elements custom elements in chrome extension manifest version 3

I am writing a chrome extension that should define different custom elements. I want to use standalone angular components for that. But if I bootstrap them in contentPage.js, I always got an EvalError from Chrome Browser. Chrome error…
0
votes
1 answer

Angular don't apply styles

There is project source code. app.component.css h1: { color: #ffffff;} .description: { font-style: italic; color: green; } app.component.html

My app

My description

app.component.ts import { Component }…
Mishamba
  • 29
  • 1
  • 7
0
votes
2 answers

How to add json data to mat options values in angular 14

Trying to change the mat options checkbox value by json data to but not able to change.I have three buttons, Each button have josn data file.If i click the New Data 1 button i want to set the that value for selectOptions, Same for others. How to do…
0
votes
1 answer

How to bind a form made using FormRecord (Angular 14) to the HTML
?

Angular 14 has released the Typed Forms concept. I am trying to use that in place of a FormGroup. ALl okay in the ts, but in HTML, how shall we bind it to the HTML tag, like we used to do for FormGroup? For formgroup we did
Rahul Mukherjee
  • 107
  • 1
  • 1
  • 10
0
votes
1 answer

Using mapbox-gl-directions with angular 14

Does anyone know how to use the mapbox-gl-directions plugin in angular 14? I am trying to replicate this example: https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/ but I can't find a way. So far I have managed to load the basic map…
Billy
  • 17
  • 1
  • 4
0
votes
1 answer

How to uncheck mat checkbox in angular 14

Trying to recheck the mat checkbox but not working. in my application after clicking the "Select Checkbox Car and Bus" button click on the input box and check the Bus and Car then click the cancel button of Bus and Car. again click the input field,…
0
votes
1 answer

Angular 14 with spring-boot backend CORS issue

I have an angular application which is running on my notebook at http://localhost:4200 I have a Java backend server where placed some rest api. I am trying to call a simple GET method on the java backend but I always get CORS error. Access to…
Zaosz
  • 137
  • 1
  • 2
  • 11
0
votes
1 answer

How to pass the value for the dropdown from using each method and input decorator in angular 14

I'm trying to set the values for the dropdown using foreach method, but it's not working properly. It is loading 5 times for each dropdown. I want to show the proper value for the dropdown. Example: For Car dropdown I want to show only the value of…
EMahan K
  • 417
  • 1
  • 19
0
votes
0 answers

Why I get Undefined result?

I'm working with Angular 14/ Firebase (Firestore) database, and I created a getAll() methode but I got Undefined result this is my getAll() methode in my service : getAllCampaigns() { const db = collection(this.firestoreDB, 'mail_campaign'); …
Wahéb
  • 541
  • 1
  • 5
  • 15
0
votes
1 answer

Unit testing errors in Angular 14

I created a brand new Angular project using the cli ng new ... and when I run npm test I get the below error in the browser: and in the console I see this error: I've not added anything extra; I tested with Node versions 14.17.1 and 16.16.0 (I am…
nshathish
  • 417
  • 8
  • 23