Coding task · Angular course · Module 2: Components

Practice: Create a Warrior Component

An Angular component is described by the @Component decorator. Its key properties are selector (the tag name), template (the HTML template) and standalone: true (an independent component; the default since Angular 19, but in this course we write it explicitly).

Task

Fill in the missing elements to create a SamuraiComponent with the selector 'app-samurai' that displays the warrior's name.