docs-feat(tabs): Include example/mention of setting mat-align-tabs dynamically #29029
Labels
area: material/tabs
docs
This issue is related to documentation
P4
A relatively minor issue that is not relevant to core functions
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
The text was updated successfully, but these errors were encountered: