Alain Chautard
Jan 22, 2023

--

Using a directive is perfectly fine. If you look at UI libraries such as Angular Material or Project Clarity, you'll see that they rely a lot on directives rather than creating components, especially for components, badges, images, etc. So, I'd say you're on the right track.

--

--

Alain Chautard
Alain Chautard

Written by Alain Chautard

Google Developer Expert in Angular, Consultant and Trainer at http://www.angulartraining.com

No responses yet