title: Angular - Add custom compoment inside nav content
body: <p>I am using ng-bootstrap navs and I would like to set a custom component as nav content.</p>
  <p>navs.component.html</p>
  <pre><code>&lt;div class=&quot;col-12&quot;&gt;
  &lt;ul ngbNav #nav=&quot;ngbNav&quot; [(activeId)]=&quot;active&quot; class=&quot;nav-tabs&quot;&gt;
      &lt;li [ngbNavItem]=&quot;1&quot;&gt;
          &lt;a ngbNavLink&gt;Nav 1&lt;/a&gt;
        &lt;ng-template ngbNavContent&gt;
            &lt;app-custom-component ngbNavContent class=&quot;&quot;&gt;&lt;/app-custom-component&gt;
        &lt;/ng-template&gt;
          
  
      &lt;/li&gt;
      &lt;li [ngbNavItem]=&quot;2&quot;&gt;
          &lt;a ngbNavLink&gt;Nav 2&lt;/a&gt;
          &lt;ng-template ngbNavContent&gt;
              &lt;p&gt;
                  Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko
                  farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts
                  ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar
                  helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson
                  8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester
                  stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.
              &lt;/p&gt;
          &lt;/ng-template&gt;
      &lt;/li&gt;
      &lt;li [ngbNavItem]=&quot;3&quot;&gt;
          &lt;a ngbNavLink&gt;Nav 3&lt;/a&gt;
          &lt;ng-template ngbNavContent&gt;
              &lt;p&gt;
                  Sed commodo, leo at suscipit dictum, quam est porttitor sapien, eget sodales nibh elit id diam. Nulla facilisi.
                  Donec egestas ligula vitae odio interdum aliquet. Duis lectus turpis, luctus eget tincidunt eu, congue et odio.
                  Duis pharetra et nisl at faucibus. Quisque luctus pulvinar arcu, et molestie lectus ultrices et. Sed diam urna,
                  egestas ut ipsum vel, volutpat volutpat neque. Praesent fringilla tortor arcu. Vivamus faucibus nisl enim, nec
                  tristique ipsum euismod facilisis. Morbi ut bibendum est, eu tincidunt odio. Orci varius natoque penatibus et
                  magnis dis parturient montes, nascetur ridiculus mus. Mauris aliquet odio ac lorem aliquet ultricies in eget
                  neque. Phasellus nec tortor vel tellus pulvinar feugiat.
              &lt;/p&gt;
          &lt;/ng-template&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  
  
  &lt;div [ngbNavOutlet]=&quot;nav&quot; class=&quot;mt-2&quot;&gt;
  &lt;/div&gt;
  </code></pre>
  <p>My custom component (app-custom-component) would have also input and output properties. Is it possible to achieve this kind of functionality?</p>