![JAR search and dependency download from the Maven repository](/logo.png)
fr.lteconsulting.angular2gwt.client.interop.ng.router.RouterConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of angular2-gwt Show documentation
Show all versions of angular2-gwt Show documentation
Allows to develop Angular 2 applications with GWT
package fr.lteconsulting.angular2gwt.client.interop.ng.router;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Object" )
public class RouterConfig
{
public String path;
public Object component;
public String redirectTo;
public String pathMatch;
@JsOverlay
public static RouterConfig route( String path, Object component )
{
RouterConfig res = new RouterConfig();
res.path = path;
res.component = component;
return res;
}
@JsOverlay
public static RouterConfig route( String path, String redirectTo, String pathMatch )
{
RouterConfig res = new RouterConfig();
res.path = path;
res.redirectTo = redirectTo;
res.pathMatch = pathMatch;
return res;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy