com.google.gwt.angular.client.Angular Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of angulargwt Show documentation
Show all versions of angulargwt Show documentation
AngularJS integration for GWT
package com.google.gwt.angular.client;
import elemental.util.ArrayOf;
import java.util.Iterator;
/**
* @author Andrei Korzhevskii ([email protected])
*/
public class Angular {
public static native void bootstrap(String moduleName) /*-{
$wnd.angular.bootstrap($doc, [moduleName]);
}-*/;
public static Iterable iterable(final ArrayOf array) {
return new Iterable() {
public Iterator iterator() {
return new Iterator() {
int next = 0;
public boolean hasNext() {
return next < array.length();
}
public S next() {
return array.get(next++);
}
public void remove() {
}
};
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy