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
Description
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
Labels
No labels