title: How to create RxJS subject in Angular 2?
body: <p>I  am able to create an Observable in my angular component in below mentioned
  way</p>
  
  <pre><code>...
  ...
  import { Observable } from 'rxjs/Observable';
  ..
  ...
  let observable = new Observable( function subscribe(observer) {
          observer.next(1);
          observer.next(2);
          observer.next(3);
          observer.next(4);
          setTimeout(() =&gt; {observer.next(5); },9000);
      });
  </code></pre>
  
  <p>But am not aware of how to create a Subject , can some one provide an example 
  for the same ?</p>