@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Repeatable(value=JsModule.Container.class) @Inherited public @interface JsModule
frontenddirectory in your root project folder in case of WAR project
META-INF/resources/frontenddirectory (inside a project resources folder) in case of JAR project (if you are using Maven this is
It is guaranteed that dependencies will be loaded only once. The files loaded
will be in the same order as the annotations were on the class. However,
loading order is only guaranteed on a class level; Annotations from different
classes may appear in different order, grouped by the annotated class. Also,
files identified by
@JsModule will be loaded before
NOTE: while this annotation is not inherited using the
@Inherited annotation, the annotations of the possible
parent components or implemented interfaces are read when sending the
dependencies to the browser.
NOTE: Currently all frontend resources are bundled together into one big
on a view constructed by another class. For example, if there are two classes
RootRoute annotated with
@Route(""), and another class
RouteA annotated with
jsmodule.js will be run
on the root route as well.
|Modifier and Type||Required Element and Description|
|Modifier and Type||Optional Element and Description|
@Deprecated public abstract LoadMode loadMode
LoadModefor the details.
Copyright © 2022. All rights reserved.