title: subscribe method not working for observable?
body: <p>I am trying to create a mock service as follows.
  my service is like</p>
  
  <pre><code>    import { Injectable } from '@angular/core';
      import { URLSearchParams } from '@angular/http';
  import { Observable } from 'rxjs/Observable';
  import { Config } from '../../shared/config/env.config';
  import { HttpBaseService } from '../../shared/http-base/http-base.service';
  import { ResponseModel } from '../../shared/models/index';
  import { InventoryIntake } from './inventoryintake';
  
  @Injectable()
  export class InventoryIntakeService {
      list:InventoryIntake[];
      constructor(private http: HttpBaseService) { }
  
      get(): Observable&lt;ResponseModel&lt;InventoryIntake[]&gt;&gt; {
          this.list=[{
              supplier_name:"atami",
              metric_reference:"55665589",
              date_received:new Date("10-5-2017"),
              date_transferred:new Date("15-5-2017")
          },
          {
              supplier_name:"green bits",
              metric_reference:"4555589",
              date_received:new Date("10-5-2017"),
              date_transferred:new Date("15-5-2017")
          }]
          let response = new ResponseModel&lt;InventoryIntake[]&gt;();
          response.data = this.list;
          console.log("called")
          return Observable.create(response);
      }
  }
  </code></pre>
  
  <p>and from component I am calling like</p>
  
  <pre><code>    import { Component, OnInit } from '@angular/core';
  import { ActivatedRoute, Router } from '@angular/router';
  import { URLSearchParams } from '@angular/http';
  import { HttpBaseService } from '../../shared/http-base/http-base.service';
  import {InventoryIntakeService} from './inventoryintake.service';
  import {InventoryIntake} from './inventoryintake'
  @Component({
      moduleId: module.id,
      selector: 'inventory-report',
      templateUrl: './inventoryintake.component.html',
      providers: [ HttpBaseService,InventoryIntakeService]
  })
  
  export class InventoryIntakeComponent implements OnInit {
     inventoryintake_list: InventoryIntake[] = [];
      constructor(
          private route: ActivatedRoute, private router: Router,private InventoryIntakeService:InventoryIntakeService) {
      }
  
      getIntakeList(): void {
          this.InventoryIntakeService.get()
            .subscribe((inventoryintake_list) =&gt; {
              this.inventoryintake_list = inventoryintake_list.data;
              console.log(this.inventoryintake_list);
          })
      }
  
      ngOnInit(): void {
         this.getIntakeList();
      }
  }
  }
  </code></pre>
  
  <p>when I do this. iam getting error saying that .subscribe is not a function.
  How can I fix this?</p>
  
  <p>How can I create a mock service with return type observable?
  is the problem is with create method of observable? </p>