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
0 answers

How to compare two json object names in typescript or javascript

I am trying to find the difference between two JSON object property name in typescript or JavaScript. When we comparing the two JSON object how to find the which group name object values is different. Example: From my code group name B6006 is…
EMahan K
  • 417
  • 1
  • 19
0
votes
0 answers

Impossible to fill in the same boxes checked in a check box in a form using FormArrayName

I manage to add data by filling in the form fields. But when I want to modify the added values I manage to fill all the fields with the data of the selected item except for the check boxes checked at the time of insertion (the selected months or…
Hermann
  • 21
  • 6
0
votes
0 answers

How can I print a data that comes as index.html in an iframe? With Angular

ts side; webURL: SafeHtml = ""; @Input() set selectedJob(job: any) { this.mediaService.matchedIframe(this.jobId).subscribe((website: any) => { this.webURL = this.sanitazer.bypassSecurityTrustHtml(website.htmlContent) }) …
0
votes
2 answers

Angular 14 serve from different folder, cannot match any route

I am serving my angular application at path domain.com/app1/ I want the browser to show url as following: domain.com/app1/page1 or domain.com/app1/page2 My angular.json has "baseHref": "/app1/" and App module has { provide: APP_BASE_HREF, useValue:…
Amit Kumar
  • 620
  • 4
  • 17
0
votes
0 answers

Upgrading to Angular 14 but my module isn't recognized anymore

I have a project that I am working on it since angular 4 (I started it few years ago). I just upgrade it from 11 to 14 (one by one, 11->12, 12->13, 13->14). I tested on angular 13 before moving to angular 14 and everything looks fine. When I…
nightingale2k1
  • 10,095
  • 15
  • 70
  • 96
0
votes
1 answer

Angular: http RxJS dependant http requests

I am developing a small app with Angular 14.1. I need to create a service that get information from N endpoint and is dependant of an endpoint. I need a solution that could retrieve previous information fast as possible. This data will be consumed…
guibos
  • 37
  • 1
  • 8
0
votes
2 answers

Type 'string' is not assignable to type 'FormGroup' Angular 14 error

I am a beginner Angular developer, I was building a todoList App using this tutorial -> https://www.youtube.com/watch?v=WTn2nVphSl8 It was done using Angular 13. Where i am getting an error is in the todo.component.html , it looks like…
Ruth Mazango
  • 13
  • 1
  • 5
0
votes
1 answer

Angular ContentChild is always undefined using injection token

I'm trying to implement a bridge pattern for content projection. In the component that has the ng-content tag in the HTML, I tried to get it via this line, where BUTTON_ENABLED_DIALOG is an InjectionToken: @ContentChild(BUTTON_ENABLED_DIALOG,…
Gargoyle
  • 9,590
  • 16
  • 80
  • 145
0
votes
1 answer

Angular 14: Typed FormcControls with boolean and default value

I try the following new FormControl({ value: true }, Validators.required), and get the error that no overloads for boolean exists. Using new FormControl({ value: null, disabled: false })); works ==> So,…
LeO
  • 4,238
  • 4
  • 48
  • 88
0
votes
1 answer

Invoke service methods in child component using a service passed as config object in parent in angular

Here i'm passing the table configurations to child component in the form of object. Where i'm passing TableService also parent.component.html parent.component.ts import…
NeonH
  • 65
  • 2
  • 11
0
votes
2 answers

Angular Valuechanges not firing first time

I have a input button, where onChange, I am calling a function. In that funtion, I am checking for valueChanges. Somehow, the subscribe to the valueChanges is not getting triggered on the first tab out after inputting a value. Here are some code…
Rahul Mukherjee
  • 107
  • 1
  • 1
  • 10
0
votes
1 answer

ngxs: Store not initialized when injected

I am using ngxs 3.7.5 with Angular 14 // single slice @State({ name: 'environment', defaults: { productionBuild: environment.production, internalPlatform: detectInternalPlatform(window.location.hostname,…
pesche666
  • 139
  • 1
  • 13
0
votes
1 answer

Not to match with regex in angular if there are any attachments, letters, words at the beginning and(or) end

Update Question; First of all hi everyone, i'm new here, i will try hard to get my question right. how the data came to me; 0: {highWord: 'hafif ticari araçlarda', color: '#00FF00'} 1: {highWord: 'hafif ticari', color: '#00FF00'} 2:…
0
votes
1 answer

Angular 14 - Slider Still Doesn't Work With Capacitor

I know this issue has been going on since 2018 and there are a LOT of posts and different solutions, however none have worked for me. I have created a new Angular 14 project, removed the start template, added capacitor and material. I added a slider…
jce
  • 133
  • 1
  • 10
0
votes
2 answers

Cannot read properties of this object values of parent component to child component function in angular

I'm calling a function declared in parent component in the child component in the form of callback. Parent Component translation-editor.component.ts export class TranslationEditorComponent implements OnInit { textGuid: string =…