angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.32k stars 6.73k forks source link

docs-bug(icon): `MatIcon` appears in the `Directives` section #24093

Open dev054 opened 2 years ago

dev054 commented 2 years ago

Documentation Feedback

Currently the MatIcon appears in the Directives section, however it's a Component:

MatIcon in Directives

Affected documentation page

https://material.angular.io/components/icon/api

dev054 commented 2 years ago

Oh, I just noticed it's happening on all pages, not just for the MatIcon, so now I'm starting to wonder if this is on purpose 🤔

crisbeto commented 2 years ago

It's a bit of trivia from the Angular.js days, but every component is also a directive.

dev054 commented 2 years ago

Yes, I'm aware that a component is, under the hood, a directive, but shouldn't the Material docs differentiate them, like the Angular docs?