Coding task · Angular course · Module 1: Introduction to Angular

Your first component

Fill in the missing elements to create a correct Angular component.

Task

Write a standalone component: an export class DojoComponent with a name property set to 'Code Academy', and a @Component decorator with selector: 'app-dojo', standalone: true and a template that shows the name in an <h1> heading using interpolation {{ name }}.