Are Angular 2 directives now “extensible”?
问题 The biggest problem I have with Angular 1 is how difficult it is to extend (in the object-oriented sense) a directive. For example, it is almost impossible to reuse the input[number] directive on my a custom widget and I had to re-implement all the validation and type conversion code. Angular 2 components are implemented as classes so it seems they can be easily extended. However, they also have that @Component annotation with very specific selectors, etc., which makes it unclear to me if