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
Problem with ngFor index only in production mode
I have an Angular 14 application which works perfectly in development mode. Everything goes well during the build to production. And when I go to my page in production, I have this error in the console:
Cannot read properties of undefined (reading…

ZaRToP
- 31
- 5
0
votes
0 answers
Angular testing on mobile using ng serve with allowed access to all devices on the same network stops working
I run my app on my desktop using
ng serve --host=0.0.0.0 --port=4200 --disable-host-check
after that I can access my app in my mobile device. But after a way the app stops loading. Leaving only that bar that appears on top of angular applications…

Diego Alves
- 2,462
- 3
- 32
- 65
0
votes
1 answer
Angular 14 - Not able to send values in props - Error: Uncaught (in promise): InvalidCharacterError: Failed to execute 'setAttribute'
I am new to Angular. When I try to send props from parent component to the child component. I am getting the below error. My angular version is 14.2.5.
core.mjs:7635 ERROR Error: Uncaught (in promise):
InvalidCharacterError: Failed to execute…

Sujith Sandeep
- 1,185
- 6
- 20
0
votes
2 answers
Custom Validator update help Angular 14
I have my form and my custom validator right here, with logic that I think should work. I have 15 fields, 3 in which the custom validator refers to ('icmp','tcpPorts','udpPorts'). Along with the other required fields I need at least ONE of those…

tsnov
- 11
- 2
0
votes
1 answer
Determine if ng-content selector matched anything
When using content projection with a selector, like so:
How can I tell whether or not anything was matched? Basically I want an, "If content provided put it here, otherwise use some default content".

Gargoyle
- 9,590
- 16
- 80
- 145
0
votes
1 answer
How to iterate an array of arrays of objects with *ngFor in Angular 14?
I know similar questions were asked, but none of them helped me with my problem.
I have a dynamic array of objects I get from server (more draws in the future):
0: {id: 19, draw: 8, colour: 'Black', person1: 'John', person2: 'Jane'}
1: {id: 18,…

Tomo
- 429
- 1
- 10
- 24
0
votes
0 answers
Laravel Angular project setup on heroku cookie issue
I have setup this two app to work together
https://admin-angular-app.herokuapp.com/login (Angular App)
https://lara-admin-999.herokuapp.com/ (Laravel App)
Now when I run the angular app due to subdomain cookies it is not working as expected.
How I…

Mithilesh Jha
- 175
- 1
- 11
0
votes
1 answer
Angular 14 : How to get the System's Hostname ; not the domain name
On the internet, many suggest using window.location.hostname
But this code gives the domain name
What I'm interested is the system's hostname(In the command prompt, run hostname)
Is it possible to get the System's hostname in Angular 14?
0
votes
0 answers
how to solve this error --> "Property i18nFile is not allowed."
errors:
Property i18nFile is not allowed
Property i18nFormat is not allowed
Property i18nLocale is not allowed
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
…
0
votes
1 answer
How to wait in angular component while service is Fetching (with Http)and Manipulating that data and return
I have component where I call service function
**xyz.component.ts**
let limitCrossed = this.outgoingPaymentsMultipleService.checkMultipleApproveLimit(selectedPayments);
let param: DialogConfirmCallerConfig = {
confirmationNeeded:…

Ashutosh Jha
- 15,451
- 11
- 52
- 85
0
votes
1 answer
Bug: Android 10 API 29 App launches with white screen
Bug Report
E/Capacitor/Console: File: http://localhost/ - Line 286 - Msg: SyntaxError: Unexpected token ?
E/Capacitor: JavaScript Error: {"type":"js.error","error":{"message":"Uncaught SyntaxError: Unexpected token…

Ashok
- 96
- 5
0
votes
0 answers
how to load css and js files dynamically according to component in Angular
I have html dashboard template, where each page content their own css and js;
i want that, each component comes with thier css and js.
I am Django developer and new in Angular.
please help me.

Gaurav Nagar
- 191
- 2
- 4
0
votes
0 answers
How to show/hide certain HTML blocks of a component based on the actual route in Angular 14?
Let's say I have two routes in Angular 14: user and admin. I also have a component called some-content.
user.component.html:
admin.component.html (same as…

Tomo
- 429
- 1
- 10
- 24
0
votes
2 answers
Angular Schematics - Create Interface/Model from JSON Response
As I am trying to automate my Development process, I would like to create a Ts/Angular Interface based on a JSON response.
Let‘s say that I am getting a response which looks like this
{"name":"John", "age":30, "car":“Honda“}
The Final outcome should…

feelsgoodman95
- 3
- 2
0
votes
0 answers
Adding a custom component inside another dynamically created custom component leads to Error NG0304: " not a known element..."
I have an ionic-angular app where I heavily use custom components. These custom components sometimes contain another custom component. Like this:
…

JojoD
- 1