@Component和@DirectiveAngular有什么区别?他们似乎都做同样的任务,并具有相同的属性.
@Component
@Directive
有什么用例以及何时优先使用另一个?
angular
angular ×1