Skip to main content
2 votes
1 answer
79 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
1 vote
1 answer
58 views

I'm working with Angular and have a scenario where a parent component passes an object (e.g., product) to a child component via property binding ([product]="product"). The child component ...
bambi's user avatar
  • 55
2 votes
2 answers
89 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
1 vote
2 answers
73 views

I made a directive in angular which is act as a time input and in template of component I repeated it based on an array of string. The directive has an @Input that is the initial value which is set to ...
vahid's user avatar
  • 25
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
1 vote
0 answers
35 views

I am getting error on tabMethod is not function child component In the Parent component: In the .ts file: this.pillTabs = [ { tabName: 'Subscribers', tabMethod: this.showSubscribers.bind(this) }, ...
Angular Guru's user avatar
5 votes
1 answer
698 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
2 answers
392 views

Say I have two parent & child components respectively: Parent Component: @Component({ selector: 'app-parent', template: `<app-child [id]="id()"></app-child>`, // this gives ...
Lakhveer's user avatar
1 vote
1 answer
52 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
49 views

I'm wondering if it's possible to somehow insert default values into a component from a library (but not wrapping it into another component which does this) to set default values. e.g. i don't want ...
Wilbert's user avatar
  • 53
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
1 vote
1 answer
113 views

I have 2 unrelated components, a search bar and a table. I have a service that shares data between them. The problem is that I have multiple instances of the search + table components depending on the ...
bestfirstsearch's user avatar
0 votes
1 answer
40 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
1 vote
1 answer
2k views

I feel like there is a happy median somewhere for the withComponentInputBinding option I am missing. Right now, I include it in providing my router in app.config, and any inputs I use that have ...
bobdebuilder's user avatar
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

15 30 50 per page
1
2 3 4 5