All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.asayama.gwt.angular.tutorial.client.SampleModule Maven / Gradle / Ivy

The newest version!
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) {
//                SampleResources resources = GWT.create(SampleResources.class);
                routeProvider
                    .when("/sample", "Sample.html", SampleController.class)
                    .otherwise("/sample");
            }
        });
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy