You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Component classes can optionally declare methods styles() that returns css in string for that component and it only be applied one time when component be used multiple times
classMyComponent {
functionrender(): string {
// render html
}
functionstyles(): string {
return<<<css body { color-scheme: light dark; } css;
/* or if you want to link and external file, or you want to add attributes to the <style> or <link> return <<<html <style media="print"> </style> html */
}
}
Componetization syntax
Current:
Requested🙌🏽🔥
f
prefix can be customizable/views/components
is taken by default and map functions or classesThe text was updated successfully, but these errors were encountered: