components icon indicating copy to clipboard operation
components copied to clipboard

docs-feat(tabs): Include example/mention of setting mat-align-tabs dynamically

Open tkutcher opened this issue 1 year ago • 0 comments

Documentation Feedback

Since mat-align-tabs is not aliased as a property/input binding (like how mat-stretch-tabs is), and it is not in the ts "API", I wound up getting myself hung up for a bit when I tried to set this dynamically as a property binding (before I realized it was an attribute) with confusing compilation errors. Mostly my oversight, but it gets confusing when the line between attribute & property is blurry for these sorts of "configurations" of the components. Perhaps it may just be a good spot to mention/link to https://angular.io/guide/attribute-binding.

In general, it might be nice if attributes like this (that only interface to scss/style implementation) could still be "standardized", or at least mentioned, in the "API" section of the docs vs. relying solely on examples / scss source.

Ultimately I figured it out without too much headache - but just a suggestion. Thanks!

Affected documentation page

https://material.angular.io/components/tabs/overview

tkutcher avatar May 09 '24 16:05 tkutcher