title: Bootstrap events in angular2
body: <p>I write a simple angular 2 component that displays a bootstrap tab. I want to handle bootstrap event show.bs.tab. I tried to put a event handler on the ul and all a tags, but I receive no event.</p>
  
  <pre><code>@Component({
      selector: 'tabpanel',
      template: `
          &lt;div&gt;
          &lt;ul class="nav nav-tabs" role="tablist" (show.bs.tab)="onTab()"&gt;
              &lt;li role="presentation" class="active"&gt;&lt;a href="#home" aria-controls="home" role="tab" data-toggle="tab" (show.bs.tab)="onTab()"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li role="presentation"&gt;&lt;a href="#profile" aria-controls="profile" role="tab" data-toggle="tab" (show.bs.tab)="onTab()"&gt;Profile&lt;/a&gt;&lt;/li&gt;
              &lt;li role="presentation"&gt;&lt;a href="#messages" aria-controls="messages" role="tab" data-toggle="tab" (show.bs.tab)="onTab()"&gt;Messages&lt;/a&gt;&lt;/li&gt;
              &lt;li role="presentation"&gt;&lt;a href="#settings" aria-controls="settings" role="tab" data-toggle="tab" (show.bs.tab)="onTab()"&gt;Settings&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;div class="tab-content"&gt;
              &lt;div role="tabpanel" class="tab-pane active" id="home"&gt;1...&lt;/div&gt;
              &lt;div role="tabpanel" class="tab-pane" id="profile"&gt;2...&lt;/div&gt;
              &lt;div role="tabpanel" class="tab-pane" id="messages"&gt;3...&lt;/div&gt;
              &lt;div role="tabpanel" class="tab-pane" id="settings"&gt;4...&lt;/div&gt;
          &lt;/div&gt;
          &lt;/div&gt;`,
      directives: [CORE_DIRECTIVES]
  })
  class TabbedPanel {
      onTab() {
          console.info('tab !!');
      }
  }
  </code></pre>
  
  <p>How to receive the bootstrap events ? I could have the same question for events of libraries like fullcalendar, openlayers which expose various events.
  I use angular 2 alpha 44.</p>