G
G
Ghoulll2019-09-30 12:55:41
JavaScript
Ghoulll, 2019-09-30 12:55:41

How to wrap a component in angular?

how to implement a wrapper for a component so that it can be used in other components.

<mew-wrapper>
  <mew-logo></mew-logo>
  <div class="main">
    <h2>Такая организация уже зарегистрирована</h2>
    <p>Организация {{name}} с ИНН {{inn}} уже зарегистрирована. </p>
    <button type="button" (click)="goToJoin(id)">Присоединиться к организации</button>
  </div>
  <a (click)="goBack()">Вернуться назад</a>
</mew-wrapper>

wrapper component:
<section class="wrapper">

</section>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2019-09-30
@Ghoulll

ng-content

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question