-
Notifications
You must be signed in to change notification settings - Fork 5
Component decorator options
Kiran Mantha edited this page Mar 30, 2024
·
1 revision
Component decorator has following options:
Option | Type | Required | Defaults | Usage |
---|---|---|---|---|
selector |
string |
Yes | true |
define the html selector for the component |
root |
boolean |
No | false |
set this to true if the component is root component of application |
styles |
string or import()
|
No | '' |
define the styles for the component through a string or by dynamic import of stylesheet. allowed stylesheet extensions are scss , css , less . Example of dynamic import:
|
deps |
Function[] |
No | [] |
define the services as array |
standalone |
boolean |
No | false |
if true then the component is not affected by global styles. to make this work, shadowDomEncapsulation should be true |
shadowDomEncapsulation |
boolean |
No | true |
if true, component adopts browser's native shadowDom encapsulation else it resort to emulation. when set to false, ensure the styles are wrapped around :host
|
Made with ❤️ by KiranMantha
- Home
- Getting started
- Components
- Signals
- Services
- Routing
- Forms
- UI Components
- Unit Testing
- Usage in VanillaJS
- Others
- Example repo
- A basic ecommerce app built using PlumeJS
- Example templates
- Implementing monorepo
- Implementing Micro-frontend
- Implementing using importmaps
- Strapi + PlumeJS
- Capacitor + PlumeJS
- Credits