Search⌘ K
AI Features

Exercise: Introduction to Attribute Directives

Explore how to create an Angular attribute directive that styles avatar images by setting size, adding a yellow border, and rounding corners to a circle shape. This exercise helps you apply selector rules and restrict directives to specific elements to enhance frontend behavior.

We'll cover the following...

Let’s practice what we learned and improve our directive for avatars.

Objectives

We’ll create a similar directive to the one in the previous lesson, ...