Skip to content

Styling Angular Components #1691

@JWiseCoder

Description

@JWiseCoder

There is no documentation for how to implement css properties with angular components. Custom components cannot (it seems) be styled with external css.

If I have a component MyComponent that exists in page mypage.html, I would expect to be able to type something like this in mypage.scss:

MyComponent {
background-color: green;
}

and expect to be able to hook up some property of MyComponent to receive that styling information and do something with it. But as far as I can tell, there is none. If there is a way to hook up CssProperty objects, there is no documentation (that I have found) for this in Angular.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions