Questions tagged [angular2-inputs]
32 questions
1
vote
1 answer
Angular 2 Change Detection delayed several seconds with Arrays and @Inputs
I know there is a ton of information on change detection in Angular 2 and I've been doing my best to wrap my head around it. I thought my issues might have something to do with the mutability properties of Array, but I am not sure. So we have these…

jaruesink
- 1,205
- 2
- 14
- 24
1
vote
1 answer
Angular 2 final - Passing Filter Data from Filter.Component to App.component
I have created a simple filtering app that works, when I have the filtering and the listing in the same component (app.ts): http://plnkr.co/0eEIJg5uzL6KsI70wWsC
@Component({
selector: 'my-app',
template: `
1
vote
0 answers
How make two-way of binding between grandchild and parent in angular2?
I need to do two way of binding between parent and grandchild. Thus, I try to do two-way of binding between child and other two.
Some think like that
GrandChild <==> Child <==> Parent
But it does not work as I expect.
This is my grandchild:
1
vote
1 answer
inject inputs into component constructor with es5 and es6
im trying to figure out how to get inputs using the es5 and es6 syntax in angular 2. i know its possible but the only documentation i can find on it uses the @ symbol which from what i understand is just syntax for the compiler but im not able to…

Binvention
- 1,057
- 1
- 8
- 24
0
votes
1 answer
How to update a nested FormGroup passed as input to a child component in Angular?
I have trouble passing the nested FormGroup (the one that is a FormControl of an outer FormGroup) as an input to a child component. More precisely, the changes made to the form group are reflected in it (I can log the expected changed form group…

antekdev
- 3
- 2
0
votes
2 answers
Adding an array of items to textarea when selecting checkboxes in Angular 2
I have a list of checkboxes in for loop and as I select one the name needs to get displayed in a textarea so as I keep selecting they need to get added and as I deselect they need to be removed. I am able to add the items but dispay only one at a…

niraja k
- 153
- 2
- 10
0
votes
1 answer
@Input() issues
I'm trying to get data from a variable from another component, but so far it hasn't been working.
The idea is that when I check a checkbox, the variables (Booleans) become true and some things on my page are visible and vice versa.
So basically I…

Claire
- 475
- 1
- 8
- 21
0
votes
2 answers
lifecycle hooks of input population from sibling component angular2
I have two siblings component like below
when user click on…

Paridokht
- 1,374
- 6
- 20
- 45
0
votes
5 answers
How to put background image in angular 2
I tried putting background url for my image
I am getting this error
Parser Error: Got interpolation ({{}}) where expression…

MMR
- 2,869
- 13
- 56
- 110
0
votes
1 answer
Angular2 Communication Between Components
I search about communication between components with Angular2 i try in this mode but doesn t work
the template variantpages.component.html content this
@Component({
selector:…

corsaro
- 731
- 1
- 9
- 24
0
votes
1 answer
Error while child component receiving data from parent component
I passed data prom parent to child
` `
Item here has data
Child component:
export class TagEditorComponent implements OnInit, OnChanges {
@Input() private item: Tag;
ngOnInit() {
…

John Doe
- 3,794
- 9
- 40
- 72
0
votes
0 answers
Angular2: Add decorators to inherited decorators in a child class
I have the following code in my Angular2 project:
@Component({selector: 'foo'})
export class Foo {
@Input() protected field:any;
}
@Component({selector: 'bar'})
export class Bar extends Foo {
ngOnInit(): void {
if (this.field) {
…

smartmouse
- 13,912
- 34
- 100
- 166
0
votes
1 answer
"Property '...' doesn't exist on type FirebaseObjectObservable" error when working with data received with @Input
I have a chunk of data being delivered to a child component through @Input that console.logs but when I go to work with the data it throws an error saying the objects I'm trying to access don't exist on type FirebaseObjectObservable.
Here's how…

Optiq
- 2,835
- 4
- 33
- 68
0
votes
1 answer
Angular 2 NgModel vs Inputs and Events
Can I use NgModel for interaction of the components or use only inputs and events?
NgModel should only be used in forms?

ildarnm
- 1
- 1
0
votes
1 answer
Angular 2 Data binding not Working for Input Decorator
I'm trying to change the value for a Donut chart based on the Input Decorator. I'm able to initialize the value but cannot change it any further.
I'm using to 2 way data bind the value. But its not…

Varun
- 3,695
- 6
- 21
- 34