title: Cannot read property 'title' of undefined, but title is displayed
body: <p>I'm new with angular 4 , and I'm trying to build my first application.</p>
  
  <p>The title is displayed in the screen but get this error in the <strong>console</strong>   :</p>
  
  <p><a href="https://i.stack.imgur.com/KwKno.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KwKno.png" alt="enter image description here"></a></p>
  
  <p>This is line 26 in the html file:</p>
  
  <pre><code>&lt;h1&gt;{{result.title}}&lt;/h1&gt;
  </code></pre>
  
  <p>This is <strong>TravelDetailComponent</strong>:</p>
  
  <pre><code>export class TravelDetailComponent implements OnInit {
  
  result: string[];
  id: number;
  
  constructor(private http: Http, private globals: Globals, private activatedRoute: ActivatedRoute) {
  }
  
  
  ngOnInit() {
    this.activatedRoute.params.subscribe((params: Params) =&gt; {
        this.id = params['id'];
        console.log(this.id);
    });
    this.http.get(this.globals.baseUrl + 'travels/' + this.id)
        .map(res =&gt; res.json()).subscribe(result =&gt; this.result = 
  result);
  }
  
  }
  </code></pre>
  
  <p>why the title is displayed in the screen but I get this error in the <strong>console</strong> and how can I solve it ? </p>