Typescript Error TS2339: Property 'project' does not exist on type '{}'
<p>Hitting this old issue in Angular 2 RC1.. Very frustrating stuff.. has anyone go any idea what I can do here to make this compile..</p>

<p>The line thats causing the error is :</p>

<pre><code>  this.project = res.project;
</code></pre>

<p>Here is my component:</p>

<pre><code>            import {Component} from '@angular/core';
            import {ProjectsMainApi} from "../../../services/projects-main";
            import { RouteConfig, RouteParams, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from '@angular/router-deprecated';

            declare var jQuery: any;

            @Component({
                selector: 'projects',
                templateUrl: './app/components/Projects/details/project-single.html',
                directives: [ROUTER_DIRECTIVES]
            })

            export class ProjectDetailsComponent {
                project: Object = {};
                constructor(private _api: ProjectsMainApi, private _params: RouteParams) {
                    this._api.getSinglePortfolio(_params.get("id")).then(
                        (res) =&gt; {
                            this.project = res.project;
                        },
                        (error) =&gt; {
                            console.error(error);
                        }
                    )
                }
            }
</code></pre>

<p>and my service is as follows:</p>

<pre><code>            import {Http, Headers, Response} from "@angular/http"
            import {Injectable} from "@angular/core"
            import {IProjectsMain, ISingleProject} from "../interfaces/AvailableInterfaces"
            import 'rxjs/Rx';
            import {Observable} from 'rxjs/Observable';
            import {Observer} from 'rxjs/Observer';
            import 'rxjs/add/operator/share';
            import 'rxjs/add/operator/map';

            @Injectable()
            export class ProjectsMainApi {
                apiUrl: string = "http://www.example.org/api/projects";
                headers: Headers = new Headers;
                project$: Observable&lt;IProjectsMain[]&gt;;
                private _ProjectsMainObserver: Observer&lt;IProjectsMain[]&gt;;
                private _dataStore: {
                    project: IProjectsMain[]
                };

                constructor(private _http: Http) {
                    this.headers.append('Content-Type', 'application/x-www-form-urlencoded');
                    this.headers.append('X-Requested-With', 'XMLHttpRequest');
                    this.project$ = new Observable&lt;IProjectsMain[]&gt;(observer =&gt; this._ProjectsMainObserver = observer).share();
                    this._dataStore = { project: [] };
                }

                public getProjectsMain() {
                    this._http.get(this.apiUrl).map(response =&gt; response.json()).subscribe(data =&gt; {
                        this._dataStore.project = data.project;
                        this._ProjectsMainObserver.next(this._dataStore.project);
                    }, error =&gt; console.log('Could not load projects.'),
                        () =&gt; "done");
                }

                public getSinglePortfolio(id) {
                    console.log("the id is" + id);
                    return new Promise((resolve, reject) =&gt; {
                        this._http.get(this.apiUrl + "/" + id).map((res: Response) =&gt; res.json()).subscribe(
                            (res) =&gt; {
                                //console.log(res);
                                resolve(res);
                            }, (error) =&gt; {
                                reject(error);
                            }
                            );
                    })
                }
            }
</code></pre>

<p>and the function being called in this component is getSinglePortfolio(id)</p>

<p>and the jason</p>

<pre><code>        {"project":[{"id":1,"title":"fdgdfgdfg","slug":"sdfgsdfgsdfg" },   {"id":2,"title":"fdgdfgdfg","slug":"sdfgsdfgsdfg" }]}
</code></pre>