1
@Component({
selector:'my-app',
template:`<h1>Hi there <\h1>
<my-tut><\my-tut>`,
directives :[TutorialComponent]
})
それはエラーを示す:角度2エラーTS2345
Argument of type selector:string template:string; directives :typeof TutorialComponent [] ;} ' is not assignable to parameter of type Component. Object literal may only specify known properties, and directives does not exist in type Component.