We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.dependency.
Annotation Type Uses
-
@Documented @Retention(value=RUNTIME) @Target(value=TYPE) @Repeatable(value=Uses.Container.class) public @interface Uses
Marks that an annotated component implicitly uses another component. This will ensure that any dependencies of the used component are also loaded.
Marking class A with
@Uses(B.class)
will ensure allStyleSheet
,JavaScript
dependencies for classB
are loaded when classA
is used.For
PolymerTemplate
implementations, used components will also be instantiated if an element with the corresponding@Tag
value is defined in the template. Note that Polymer template support is deprecated - we recommend you to useLitTemplate
instead. Read more details from the Vaadin blog.Since:
1.0
Author:
Vaadin Ltd