Hi, 
I have been trying all day to make a simple http get in angular 2, but Im 
failing miserably...
I get the error No provider for ConnectionBackend!

HTTP_BINDINGS, 
HTTP_PROVIDERS 
and Http 
are all being bootstrapped into the project. 

This is my service that tries to make the Http get: 

import {Http, HTTP_BINDINGS,HTTP_PROVIDERS,  Response, Headers} from 
'angular2/http';
import {Inject, Injectable} from 'angular2/core';
import {Project, History, User } from  '../models/theModels';

@Injectable()
export class ProjectService { 
result: Project[];
path:string;
http:Http;
    constructor(@Inject(Http) http:Http) {
this.path = "projects";
this.http= http; 
}
load() {
           this.http.get( this.path)
.map(res => res.json())
.subscribe(res => this.result = res);
        console.log("Res: " + this.result);
}
}




Any help appreciated. 

Regars Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to