I have changed my angular 2 app to RC. It worked fine until i included HTTP_PROVIDER and created service.ts.
I get an error
(index):14 Error: SyntaxError: Unexpected token <(…)
and i cant seem to discover why. Can anyone help with this ?
This is my service.ts code
    /**
 * Created by Adjoa on 5/29/2016.
 */
import {Injectable} from  "@angular/core";
import {Http,Headers,HTTP_PROVIDERS} from "@angular/http";
import { Headers, RequestOptions } from '@angular/http';
@Injectable()
export class SignInService {
    constructor(private _http: Http){}
    postData(data:any){
        const body = JSON.stringify(data);
        const headers= new Headers();
        headers.append('Content-Type','application/json');
        return this._http.post('https://testing-angular-2.firebaseio.com/datatest.json', body, {headers:headers});
    }
}
 
    