com.asayama.gwt.angular.tutorial.client.SampleModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-angular-tutorial Show documentation
Show all versions of gwt-angular-tutorial Show documentation
The tutorial section of GWT Angular demo website.
package com.asayama.gwt.angular.tutorial.client;
import com.asayama.gwt.angular.client.AbstractModule;
import com.asayama.gwt.angular.client.Angular;
import com.asayama.gwt.angular.client.Configurator;
import com.asayama.gwt.angular.route.client.RouteProvider;
import com.google.gwt.core.client.EntryPoint;
public class SampleModule extends AbstractModule implements EntryPoint {
@Override
public void onModuleLoad() {
Angular.module(this);
controller(SampleController.class);
config(RouteProvider.class, new Configurator() {
@Override
public void configure(RouteProvider routeProvider) {
routeProvider
.when(SampleResources.INSTANCE.sample(), SampleController.class)
.otherwise(SampleResources.INSTANCE.sample());
}
});
}
}