title: Binding Angular2 components inside of a Jquery plugin template
body: <p>I'm working on using a kendo inside of an angular 2 project.</p>
  
  <p>Getting the widget set up correctly is no problem:</p>
  
  <pre><code>ngOnInit() {
      let options = inputsToOptionObject(KendoUIScheduler, this);
      options.dataBound = this.bound;
      this.scheduler = $(this.element.nativeElement)
          .kendoScheduler(options)
          .data('kendoScheduler');
  
  }
  </code></pre>
  
  <p>When that runs, the plugin modifies the DOM (and, to my knowleged, without modifiying the shadow DOM maintained by angular2).  My issue is that if I want to use a component anywhere inside of the plugin, like in a template, Angular is unaware of it's existence and won't bind it.</p>
  
  <p>Example:</p>
  
  <pre><code>public views:kendo.ui.SchedulerView[] = [{
      type: 'month',
      title: 'test',
      dayTemplate: (x:any) =&gt; {
          let date = x.date.getDate();
          let count = this.data[date];
          return `&lt;monthly-scheduler-day [date]="test" [count]=${count}"&gt;&lt;/monthly-scheduler-day&gt;`
      }
  }];
  </code></pre>
  
  <p>The monthly-scheduler-day class:</p>
  
  <pre><code>@Component({
      selector: 'monthly-scheduler-day',
      template: `
              &lt;div&gt;{{date}}&lt;/div&gt;
              &lt;div class="badge" (click)=dayClick($event)&gt;Available&lt;/div&gt;
      `
  })
  export class MonthlySchedulerDayComponent implements OnInit{
      @Input() date: number;
      @Input() count: number;
      constructor() {
          console.log('constructed');
      }
      ngOnInit(){            
          console.log('created');
      }
  
      dayClick(event){
          console.log('clicked a day');
      }
  
  }
  </code></pre>
  
  <p>Is there a "right" way to bind these components inside of the markup created by the widget?  I've managed to do it by listening for the bind event from the widget and then looping over the elements it created and using the DynamicComponentLoader, but it feels wrong.</p>