Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
74 views

I created this simple component that has two inputs that both accept a string and in theory should accept undefined because they have a default value. @Component({ selector: 'app-child', imports: [...
Ruben's user avatar
  • 181
2 votes
2 answers
87 views

I have 5 dynamic objects out of those 5, I am referring to only 2 here: objCache.tab1.page1.status: when cache enable from tab objCache.page1.status: when cache enable from page In my html and .ts ...
Sandip - Frontend Developer's user avatar
0 votes
0 answers
23 views

Parent Component ts Obj1={ name:"foo" fname:"Bee"} Obj2={field1: "data", field2:"data2" , filed3:"data3"} html : <form #f="ngForm"> &...
Angular Guru's user avatar
5 votes
1 answer
690 views

When using Angular signal inputs if I want to specify a required input array import { input } from '@angular/core'; values = input.required<number[]>([]); I get the build error (StackBlitz) ...
Cory Kramer's user avatar
1 vote
1 answer
49 views

I am using Angular ng2-smart-table and am having trouble sending the value of a parameter to another component. The value is coming through as undefined. Actually, want to enable or disable the toggle ...
vishnu's user avatar
  • 4,599
1 vote
2 answers
92 views

I have 2 components in Angular, a parent and a child. I'd like the parent to be able to pass an array of objects representing a clickable thing to the child have the child component dynamically ...
Fred2020's user avatar
  • 495
0 votes
1 answer
36 views

i have been trying to display the name of the array item onclick of the user button but onclick of that i m getting name of the user in console but not in page level this is the app.component.ts file ...
lucky 's user avatar
  • 21
2 votes
2 answers
3k views

Note that this is using Angular 18.0.0. I am updating code to change from an observer to a signal. Instead of watching the observer, I want it passed into the component as if it were @Input. As an ...
John Churchill's user avatar
1 vote
1 answer
228 views

I thought that I can use an URL as input Signal in my preview.component like hrefLink = input.required<SafeValue>(); and in the .html use it like <img [src]="hrefLink"/> I have ...
LeO's user avatar
  • 5,401
1 vote
3 answers
7k views

In earlier versions of Angular, ngOnChanges provides SimpleChange which is helpful in getting previousValue and currentValue of an @Input property. I want this same functionality in Signal based ...
Lakhveer's user avatar
1 vote
2 answers
671 views

I have typical setter/getter for an input in my code, as I want to execute a function when the value changes, but somehow it is fired without input changes private _myInput: string[]: []; @Input() get ...
cucuru's user avatar
  • 3,758
0 votes
1 answer
238 views

I have typical easy situation but in that case @Input() does not working... Child Component: @Component({ selector: 'app-test-grid', templateUrl: './test-grid.component.html', styleUrls: ['./...
ruddnisrus's user avatar
0 votes
1 answer
346 views

While learning Angular, I realized that there is no need to use eventemitter to send data from the parent component to the child component, while the eventemitter must be used to send data from the ...
user16142561's user avatar
0 votes
1 answer
487 views

When numbers are entered in the price(Fiyat) fields in the picture, I want the place that says 0 TL to change. The place that says 0 TL should be the sum of the numbers step by step. How can i do that?...
emiirhaneksi's user avatar
1 vote
1 answer
478 views

I need to pass a variable value from the parent component to the child component through an input. That is, the screenMode value received through the above ng-container needs to be given to the add-...
Demodev's user avatar
  • 94
1 vote
1 answer
630 views

This is parent component : parent.component.ts ==> import { Component, OnInit, Input } from '@angular/core'; @Component({ selector: 'app-parent', templateUrl: '<div> <...
Garry14's user avatar
  • 41
1 vote
0 answers
1k views

I have a component where I can select an item from a list. There is another section on the screen where the data of that item is shown on the screen. In this data display section, there I have ...
user13890070's user avatar
7 votes
7 answers
12k views

I am using angular material for all my controls. We have a requirement to disable auto-complete so that any previously typed value will not show up. I have my code as below. I tried autocomplete "...
indra257's user avatar
3 votes
1 answer
545 views

I'm using angular 7 and trying to do something in a child component : use the input property that can be at first level in the object or deeper. My child component has this piece of code : if (this....
pti_jul's user avatar
  • 562
0 votes
1 answer
265 views

I've a HUGE problem. The entire thing started with this: Fix corrupted HTML file or decompile Angular Component My PC suddently crashed and from that event it become worse every second. I get weird ...
Pietro Lungarini's user avatar
2 votes
0 answers
2k views

i'm searching an Component/Plugin/Way for inline-editing in Angular like Jira. I have recorded a sample gif Sample GIF: Does have anybody a component like this? I will be happy to hear your ...
fanavity's user avatar
0 votes
1 answer
176 views

I have that piece of code of a reactive form that compiles right and is well executed with the matInput directive which is binded, but when I run the angular cli command for internationalisation (ng ...
Thomas Perrin's user avatar
0 votes
1 answer
162 views

I have a problem in my angular application that Button Status can not be changed in a child componnent, now I show my code firstly. this is a child component <child-component [(...
user1938143's user avatar
  • 1,204
0 votes
1 answer
2k views

I'm having troubles uploading doc and docx files, because I can't get the right type of file when converting it to base64. This is my input: <input accept=".pdf,.txt,.doc,.docx" ...
Usr's user avatar
  • 2,888
7 votes
4 answers
14k views

I have reproduced a simple stackblitz demonstrating the issue I have been having. The problem is that I have a parent component that passes a boolean to a child component. This boolean is an @Input on ...
Pat's user avatar
  • 265