With the following component class, what template syntax would you use in the template to display the value of the title class field?

@Component({
    selector: ‘app-title-card’,
    template: ”
})
class TitleCardComponent {
    title = ‘User Data’;
}
  •  {{ ‘title’ }}
  •  {{ title }}
  •  [title]
  •  A class field cannot be displayed in a template via the template syntax.

Leave a Reply

Your email address will not be published. Required fields are marked *