Sorry this is months late, life got crazy and now here we are haha. The host property is replaced with the <Host> virtual component. This allows you to specify attributes and classes on the host element itself rather than the containing elements. See the docs for details.
As for assetDirs, it allows you to specify directories from which assets your component uses such as images come from.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey John,
Great article, Can you please share what are the usage of host, assetDir and assetDirs in component decorator
Sorry this is months late, life got crazy and now here we are haha. The
host
property is replaced with the<Host>
virtual component. This allows you to specify attributes and classes on the host element itself rather than the containing elements. See the docs for details.As for
assetDirs
, it allows you to specify directories from which assets your component uses such as images come from.