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

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

By Neha S

Leave a Reply

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