For questions regarding Angular specific to version 14. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.
Questions tagged [angular14]
536 questions
0
votes
1 answer
ng build generate a blank index.html and ng build --prod giving me error unknown argument prod
[**this is the errors shown in blank index console1]
files generated by ng build
0
votes
0 answers
How to create a treeview with Angular
I'm writing a project with angular 14 and I need to create such a treeview, but I don't know how to do it. I want help from those who have knowledge about this subject.

Cem Özbey
- 9
- 3
0
votes
1 answer
Angular 14 reactive form how to reset formarray inside formgroup
I am using Angular 14 and reactive forms. I have a form with a formarray inside formgroup.
On reset, i want to reset the form and formarray with initial state. I tried
this.conditionalActionForm.reset();
this.conditionalActions.clear();
but getting…

Mukil Deepthi
- 6,072
- 13
- 71
- 156
0
votes
0 answers
Tailwind accordion works on localhost but not on AWS
Problem:
The Angular component for an accordion is perfectly working on localhost but not on an AWS Server.
If you click on one of the accordion-items it always jumps to the top of the side so you have to scroll down to the accordion again. On the…

Franz Moshammer
- 9
- 1
0
votes
1 answer
how to use ng-multiselect-dropdown without [(ngModel)]
i am using the ng-multiselect-dropdown with angular 14.
i want to use this module with singleSelection without initial data i mean without [(ngModel)] to show placeholder firstly but i got error.this is my code below
this is my html code
…

reza setareh
- 63
- 7
0
votes
0 answers
Getting Http failure response for https://localhost:7032/api/Student: 0 Unknown Error in Angular / .Net Core API
I am developing simple project using .NET Core Web API & Angular 14. But when I am trying to get the data from web api I am getting this error.
message: "Http failure response for https://localhost:7032/api/Student: 0 Unknown Error"
enter image…
0
votes
2 answers
"assets" folder not accessible (404) once deployed in App Service
My "assets" folder is properly packaged in the build, but once deployed on the App Service, the browser gets 404 errors.
Here's the angular.json part that makes the build include everything in the folder
"assets": [
"src/assets"
…

Francis Ducharme
- 4,848
- 6
- 43
- 81
0
votes
0 answers
How to get the response data from an HTTP POST request?
I am trying to get the response data from a REST API URL in my Angular 14 application. But it's not working. How to write a proper POST query?
Details:
getDetails(): Observable {
const url = '.../mrkc/prd/api/details';
const…

EMahan K
- 417
- 1
- 19
0
votes
2 answers
How to set a array values inside http get method in angular 14
Trying to update the array value inside the http get method. But, it is not working. Get method also not working to get json data from assets folder.Getting status 200 message. So, How to relsove this issue?
app.component.ts:
ngOnInit(): void {
…

EMahan K
- 417
- 1
- 19
0
votes
2 answers
How to get the json data from the post request in angular
Trying to get the json date from the post request.But i do not know how to get it in angular14.
curl -X POST http://localhost:8099/magentok/rtf/api/getAllDetails -H "accept: */*" -H "Content-Type: application/json" -d…

EMahan K
- 417
- 1
- 19
0
votes
2 answers
How to update array values inside httpClient method in angular14
Trying to update the array value using the httpClient method. But not working properly. How to get that updated array value outside of httpclient method.If anyone knows please help to find the solution.
app.component.ts:
public allData = ['Van1',…

EMahan K
- 417
- 1
- 19
0
votes
2 answers
I am getting this error when i try to add bootstrap in my Angular project
I tried using following command too,
ng add @ng-bootstrap/ng-bootstrap -- force
It didnt worked, so i deleted both node_modules and package-lock.json files.
I reinstalled it using following command.
npm install --legacy-peer-deps
Still i am…
0
votes
1 answer
Binding a typescript variable to translate service
I'm trying to have a TypeScript variable bind to the translate service just like binding in the HTML markup, which works fine.
Here's what I've tried so far
ngOnInit() {
…

Francis Ducharme
- 4,848
- 6
- 43
- 81
0
votes
1 answer
Expand specific mat accordion based on Search result in Angular 14
I have a search for a word option above the accordion, so users can search for a specific word in the accordion and those accordions that has the words matched are expanded and the searched word is highlighted. For now the search and highlight the…

Vjdpa
- 1
- 4
0
votes
3 answers
Angular Adding data to and object add runtime not inserting data
I am trying to add data to an object with a button click but nothing is happening.
Here is the code:
HTML:
{{ data | json }}
TS:
import { Component } from '@angular/core';
@Component({
selector:…

zaknio55
- 61
- 7