import { Injectable } from 'angular2/core';
import { Http, Response } from 'angular2/http';

//Grab everything with import 'rxjs/Rx';
import {Observable} from 'rxjs/Observable';
import 'rxjs/add/operator/map'; 
import 'rxjs/add/operator/catch';


@Injectable()
export class DataService {
  
    baseUrl: string = '';

    constructor(private _http: Http) { }
    
    getCustomers() {
        return this._http.get(this.baseUrl + 'customers.json')
                        .map((res: Response) => res.json())
                        .catch(this.handleError);
    }

    getOrders(){
      return this._http.get(this.baseUrl + 'orders.json')
                      .map((res: Response) => res.json())
                      .catch(this.handleError);               
    }
    
    handleError(error: any) {
        console.error(error);
        return Observable.throw(error.json().error || 'Server error');
    }

}

import { Injectable } from 'angular2/core';
import { Http, Response } from 'angular2/http';

//Grab everything with import 'rxjs/Rx';
import {Observable} from 'rxjs/Observable';
import 'rxjs/add/operator/map'; 
import 'rxjs/add/operator/catch';


@Injectable()
export class DataService {
  
    baseUrl: string = '';

    constructor(private http: Http) { }
    
    getCustomers() {
        return this.http.get(this.baseUrl + 'customers.json')
                        .map((res: Response) => res.json())
                        .catch(this.handleError);
    }

    getOrders(){
      return this.http.get(this.baseUrl + 'orders.json')
                      .map((res: Response) => res.json())
                      .catch(this.handleError);               
    }
    
    handleError(error: any) {
        console.error(error);
        return Observable.throw(error.json().error || 'Server error');
    }

}

--- 
+++ 
@@ -12,16 +12,16 @@
   
     baseUrl: string = '';
 
-    constructor(private http: Http) { }
+    constructor(private _http: Http) { }
     
     getCustomers() {
-        return this.http.get(this.baseUrl + 'customers.json')
+        return this._http.get(this.baseUrl + 'customers.json')
                         .map((res: Response) => res.json())
                         .catch(this.handleError);
     }
 
     getOrders(){
-      return this.http.get(this.baseUrl + 'orders.json')
+      return this._http.get(this.baseUrl + 'orders.json')
                       .map((res: Response) => res.json())
                       .catch(this.handleError);               
     }
Change private http member to _http
