Is there a better way to dynamically load styles in Angular 7? I have tried the example below but it's not working in version 7 of Angular. This code worked fine in earlier versions before Angular 7. Can someone offer some help or advice please? Thank you.
function selectTheme(): string[] {
return ['/app.component.less']
}
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: selectTheme()
})