title: http get request error on angular2
body: <p>Im trying to use the http method get request and i have some issues to subscribe the respond.
  here is my service:</p>
  
  <pre><code>import { Injectable } from '@angular/core';
  import { Http, Response } from '@angular/http';
  import 'rxjs/Rx';
  import 'rxjs/Observable';
  import 'rxjs/add/operator/map';
  
  @Injectable()
  export class ProfileService{
  http: any;
  url: String;
  date: Date;
  
  constructor(http:Http){
  this.http = http;
  this.date = new Date();
  //this.baseurl = 'www.google.com';
  }
  
  get_heb_date():String{
  var year = this.date.getFullYear();
  var month = this.date.getMonth();
  var day = this.date.getDay();
  //var after_sunset = 1;
  //var convert_from_gregorian_to_hebrew = 1;
  return this.http.get('http://www.hebcal.com/converter/?fg=json&amp;gy='+year+'&amp;gm='+month+'&amp;gd='+day+'&amp;g2h=1')
  .map(res =&gt; res.json());
   }}
  </code></pre>
  
  <p>here is my component where im trying to get the "GET" request.</p>
  
  <pre><code>import { Component } from '@angular/core';
  import { JewristService } from '../../app/services/jewrist.service';
  import { NavController } from 'ionic-angular';
  import { ProfileService } from '../../app/services/profile.service';
  import 'rxjs/Rx';
  
  
  @Component({
  selector: 'page-profile',
  templateUrl: 'profile.html',
  providers: [ProfileService]
  })
  export class ProfilePage {
  username: String;
  loggedin: Boolean;
  date: String;
  
  constructor(public navCtrl: NavController, private _httpservice: ProfileService) {
  this.username = 'null';
  }
  ngOnInit(){
  console.log('Profile component is running..');
  this._httpservice.get_heb_date().subscribe(
  data =&gt; this.date = JSON.stringify(data)
   ); }}
  </code></pre>
  
  <p>my IDE is ATOM on windows, and thats the problem it specify:
  Property 'subscribe' does not exist on type 'String'.</p>