What happened to the directives property in the Component decorator for Angular 2?
问题 I am using the Angular CLI v1.0.0-beta.19-3 to scaffold/build an Angular 2 website. I generate my component as follows ng g component file-upload . I noticed that the generated component file-upload.component.ts looks like the following. @Component({ selector: 'file-upload', templateUrl: './file-upload.component.html', styleUrls: ['./file-upload.component.css'] }) export class FileUploadComponent implements OnInit { ... } I need to use this component, ng2-file-upload, inside my own component.