Is it possible to make a self-closing component in Angular 2?

Just out of curiosity, I would like to know if there is a way to make the closing component itself in Angular 2, like the <input> . So that I can use it in my template, for example:

 <div> <my-input> </div>` 
+6
source share
1 answer

Until you can create a self-closing component.

https://github.com/angular/angular/issues/5563#issuecomment-161826319

+5
source

Source: https://habr.com/ru/post/1013208/


All Articles