Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

flex-item in @Component host.class doesn't work #151

Closed
@datumgeek

Description

@datumgeek

i have work-arounds for this, but when you are trying to use multiple (named) router-outlets, you have to rely on the router to instantiate your components so you can't use the flex classes and attributes the way you can in a template. i tried this:

@Component({
  selector: 'app-field-results',
  templateUrl: './field-results.component.html',
  styleUrls: ['./field-results.component.css'],
  host: { 'class': 'flex-item' }
})

and the class is set properly to flex-item, but it isn't expanded into its corresponding flex classes and attributes

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