I have a parent component with a list of Item objects.  In the template, I 
am looping over them and creating an Item component object for each one, 
but I need to pass the relevant Item object into each child component.  I'm 
getting the error: "Unable to resolve signature of property decorator when 
called as an expression. Supplied parameters do not match any signature of 
call target.".  Can someone tell me where I'm going wrong here?

The parent template includes this:

<app-item *ngFor="let item of (items | itemFilter:getFilterArguments())" 
> [item]="item"></app-item>


The child component:

>
>  import { Component, OnInit, Input } from '@angular/core';
> @Component({
>   selector: 'app-item',
>   templateUrl: './item.component.html'
> })
> export class ItemComponent implements OnInit {
>   @Input item:Item;
>   constructor() {}
>   ngOnInit() {
>   }
> }

 

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to