I know one way. Use the component as a directive. That is, selector : '[appCustomComponent]', as selector : '[appCustomComponent]', Is there some more convenient way? So I remember inside the directive can not embed html

  • What do you mean by intermediate block? See an example. - Stepan Kasyanenko
  • I create input, but when inserted as a component, it is placed in a block. That is, <app-input><input type="text"></app-input> . And you need <input type="text"> . - Nikolay
  • Now it is clear! Then the next question - why do you need it? Just this is the essence of the components, you want to change this essence) - Stepan Kasyanenko
  • @StepanKasyanenko I want to insert my component in the form of normal input, for example. Do not push it inside another unit. Yes, inline-block is good, but two blocks are still there, instead of two. In the reactor did, it is not clear why this is not in the angular - Nikolay
  • Because angular follows the web-component paradigm. You create components accordingly. Well, the components are each in its block. And what's the problem with this unit? What is he bothering you? - Stepan Kasyanenko

0