title: Could I have several parts for angular component template?
body: <p>I want to use my component at several pages, including modal window. Let's say it's called <code>CompanyInfoComponent</code>. It has company title information and the area with detailed info. </p>
  
  <p>I use Angular with Bootstrap 4, and I want to use different component parts in different places on the page. I want first part to contain compony name and some control elements and second part to contain all the company details, so that I could use it differently on 'simple' pages and modal component.</p>
  
  <p>Generally I want it to be used like:</p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;div class="card"&gt;
          &lt;div class="card-block"&gt; 
              &lt;div class="row"&gt;
                  &lt;div class="col-12"&gt;
                      &lt;h4 class="card-title"&gt; 
                          &lt;app-company-info-part-1&gt;&lt;/app-company-info-part-1&gt;
                      &lt;/h4&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;app-company-info-part-2&gt;&lt;/app-company-info-part-2&gt;
          &lt;/div&gt; &lt;!--card-block--&gt;
      &lt;/div&gt; &lt;!--card--&gt;
  &lt;/div&gt;&lt;!-- container --&gt;              
  </code></pre>
  
  <p>And in modal window I want to use it like</p>
  
  <pre><code>&lt;div class="modal-dialog modal-lg" role="document"&gt;
      &lt;div class="modal-content"&gt;
          &lt;div class="modal-header"&gt;
              &lt;h4 class="modal-title"&gt;
                  &lt;app-company-info-part-1&gt;&lt;/app-company-info-part-1&gt;
              &lt;/h4&gt;
          &lt;/div&gt;
          &lt;div class="modal-body"&gt;
              &lt;div class="container"&gt;
                  &lt;app-company-info-part-2&gt;&lt;/app-company-info-part-2&gt;  
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt; &lt;!--modal-content--&gt;
  &lt;/div&gt; &lt;!-- modal-dialog&gt;
  </code></pre>
  
  <p>I want it to be single component so that I could have single component class with all necessary methods, because in terms of the code part 1 and part 2 are going to be tightly coupled.</p>
  
  <p>I know that it's impossible to make angular behave like I want to, but I think that use case is quite common and there should be some workaround. I'd be happy if anyone could share ideas. Thanks!</p>