2 ms·
Its not that it's limited, there's just no feature added for styling. There's a place to add a template string in a directive but there's no place to add a "sty
by crimsonalucard 12y ago
Its not that it's limited, there's just no feature added for styling. There's a place to add a template string in a directive but there's no place to add a "styling string". Typically you just put in classes and ids in your template string that references the global css file/s. If you try to reuse the directive in another project you have to move your css file over as well. The only way around this, or in essence to make a truly self contained and re-useable component is to inline the styles in the styles attribute. It gets a bit ugly in that case.