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.