Skip to content

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

Open
@tkutcher

Description

@tkutcher

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/tabsdocsThis issue is related to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions