I'm running into this issue too. I have a version using Typescript 1.8.10, 
and it works fine, but the Typescript 2.0.3 version doesn't. Same error as 
above:

@Component({
  templateUrl: 'build/pages/drug-details/drug-details.html',
  directives: [DrugDetailBasic, ClinicalPhase, ResearchUse, ClinicalUse, 
Indications, RecentEvents]
})


On Friday, September 23, 2016 at 7:30:26 AM UTC-4, Balaji Iyengar wrote:
>
> Hi,
>
> I need to include a child component into a parent component. Followed the 
> steps suggested in various online blogs to use something like
>
> @Component
> ({
>       directives: [<Class Name>]
> })
>
> But when I do the above I get the below error, Please help.
>
> Using Angular 2, QuickStart Guide steps to create the project in VS2015, 
> Typescript 2.0.3
>
> Error: Argument of type '{ selector: string; template: string; directives: 
> undefined[]; }' is not assignable to parameter of type 'Component'.
>   Object literal may only specify known properties, and 'directives' does 
> not exist in type 'Component'.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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