title: Print data in console with Observable - Angular 2
body: <p>Trying to learn Observable's in angular 2 and I can't seem to get something simple as printing keyup inputs from an text input field to work. Here is the code from my app.component.ts  </p>
  
  <pre><code>import {Component} from '@angular/core';
  import {Observable} from 'rxjs/Rx';
  
  @Component({
      selector: 'my-app',
      template: `    
                 &lt;input id="search" type="text" class="form-control" placeholder="Search"/&gt;
      `
  })
  export class AppComponent{
      constructor() {
  
          var input = $('#search');
  
          var keyups = Observable.fromEvent(input, 'keyup');
  
          keyups.subscribe(data =&gt; console.log(data));
      }
  }
  </code></pre>