http.get not working in angular js 2
<pre><code>import {Injectable} from 'angular2/core';
import {SampleInfo} from 'app/sample-info/model/sample-info-model';
import {HTTP_PROVIDERS, Http, Response, Headers, RequestOptions} from 'angular2/http';

import {Observable} from 'rxjs/Observable';
import 'rxjs/Rx';


@Injectable()
export class SampleService {
  constructor (private http: Http) {}

  private _url = 'http://localhost:9090/sample/details/1213';

  getInfo () {
    headers = new Headers({ 'Authorization': 'Basic AVBDIEtr009=' });
    options = new RequestOptions({ headers: headers });
    // $.ajax(this._url); 
    return this.http.get(this._url, options)
                    .map(res =&gt; &lt;SampleInfo&gt; res.json())
                    .do(data =&gt; console.log(data))
                    .catch(this.handleError);
  }

  private handleError (error: Response) {
    console.error(error);
    return Observable.throw(error.json().error || 'Server error');
  }
}
</code></pre>

<p>Please check the above code snippet. In that,
this.http.get(...) is not sending the request to the url, but $.ajax(...) is working, could someone please help ?</p>

<p>i already call this from the component class which use the service, </p>

<pre><code>import {Component, OnInit} from 'angular2/core';
import {Router} from 'angular2/router';
import {SampleInfoService} from 'app/booking-info/service/sample-info-service';
import {SampleInfoModel} from 'app/booking-info/model/sample-info-model';
import {TranslateService, TranslatePipe} from 'ng2-translate/ng2-translate';
import {HTTP_PROVIDERS} from 'angular2/http';


@Component({
  selector: 'sample-information',
  templateUrl: 'app/sample-info/templates/sample-info.html',
  providers: [SampleInfoService],
  pipes: [TranslatePipe]

})
export class SampleInfoComponent implements OnInit {
    public sampleInformation = {};
    constructor(private _sampleInfoService: SampleInfoService,private _translate: TranslateService) {
            this.initializeTranslateServiceConfig(_translate, 'en')
        }

    getSampleInfo() {
        this._sampleInfoService.getInfo()
                     .subscribe(
                       SampleInfo =&gt; {
                            this.sampleInformation = SampleInfo;
                            console.log(this.sampleInformation);
                        },
                       error =&gt;  this.errorMessage = &lt;any&gt;error);
    }
</code></pre>