public class Angular extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Angular.SupportedRootClass |
static class |
Angular.Version |
Modifier and Type | Field and Description |
---|---|
protected static List<String> |
modules |
protected static com.asayama.gwt.angular.client.NGAngular |
ngo |
Constructor and Description |
---|
Angular() |
Modifier and Type | Method and Description |
---|---|
static void |
bootstrap()
Manually start up Angular application.
|
static Angular.Version |
getVersion() |
static <M extends AbstractModule> |
injector(Class<M>... modules)
Returns an injector object that can be used to retrieve services.
|
static <M extends AbstractModule> |
module(M module,
String... requires)
Registers a module with Angular framework, with module dependency listed
in the
requires parameter. |
static <M extends AbstractModule> |
moduleWithDependency(M module,
String... requires)
Deprecated.
Replaced by
#module(Module, String...) since 0.0.72 |
public static void bootstrap()
See also https://docs.angularjs.org/api/ng/function/angular.bootstrap
@SafeVarargs public static <M extends AbstractModule> Injector injector(Class<M>... modules)
See also https://docs.angularjs.org/api/ng/function/angular.injector
@Deprecated public static <M extends AbstractModule> M moduleWithDependency(M module, String... requires)
#module(Module, String...)
since 0.0.72public static <M extends AbstractModule> M module(M module, String... requires)
requires
parameter. If a module by the same name
(i.e. the same class name including the package name) has already been
registered, then the previous registration is overridden.module
- An instance of this module.requires
- Optional list of other module names this module depends on.public static Angular.Version getVersion()
Copyright © 2014. All rights reserved.