angular-css
angular-css copied to clipboard
Embed CSS without file
Is there a way to specify the CSS to inject as a set of rules in text format? I mean, without having to reference a CSS file?
Hi @oravecz
This feature is not currently supported. Marking as an enhancement.
Alex
Why dont u use a
I want to distribute these directives as a module, and by referencing it as a path means the developer using these components will have to place the CSS in a particular path location on their web server. This can be problematic for some deployments, and is a major reuse impediment. Web components have this solved, Angular does not, but angular-css has an opportunity to make it a bit more seamless.
Yeah but instead of using
<link rel="stylesheet" href="..."/>
just use
<style>
/*CSS goes here*/
</style>
in your template