Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Angular Basics Angular Components Component Templates and Styles

Despite following all the things as the video said, the image and the description are missing in my browser view.

Why the browser is not showing the image and description enclosed with figure and fig caption from my entry.component.html file.This is my code from "entry.component.ts"

 import {Component} from '@angular/core';

@Component({
   selector:'app-entry',
   templateUrl:'entry.component.html',
   styleUrls: ['entry.component.css']


})

export class EntryComponent{
    title:string = 'My first photo';
    photo:string = 'http://placehold.it/800×500?text=Angular Basics';
    description:string='A description of my First job';


}

and this is my code from "entry.component.html"
 <h2>{{title}}</h2>
<figure>
   <img src="{{photo}}">
    <figcaption>{{description}}</figcaption>
</figure>

In this case, we can't help you without seeing your code. Make sure you include your code for us to review.