Package org.angular.ts.ng
Interface InjectorService<TCustomServices>
@JsType(isNative=true,
name="ng.InjectorService",
namespace="<global>")
public interface InjectorService<TCustomServices>
Public AngularTS InjectorService contract exposed through the global ng namespace for Closure-annotated applications.
-
Method Summary
Modifier and TypeMethodDescription<TKey> Objectget(TKey serviceName) Get a service by name.booleanPublic InjectorService.has member exposed by the AngularTS namespace contract.<TInstance>
TInstanceinstantiate(Object type, Object locals, String serviceName) Instantiate a type constructor with optional locals.<TResult> TResultInvoke a function with optional context and locals.voidloadNewModules(elemental2.core.JsArray<Object> mods) Public InjectorService.loadNewModules member exposed by the AngularTS namespace contract.
-
Method Details
-
get
Get a service by name.- Parameters:
serviceName- Value supplied for the serviceName parameter.- Returns:
- Method result.
-
has
Public InjectorService.has member exposed by the AngularTS namespace contract.- Parameters:
name- Value supplied for the name parameter.- Returns:
- Method result.
-
instantiate
Instantiate a type constructor with optional locals.- Parameters:
type- Value supplied for the type parameter.locals- Value supplied for the locals parameter.serviceName- Value supplied for the serviceName parameter.- Returns:
- Method result.
-
invoke
Invoke a function with optional context and locals.- Parameters:
fn- Value supplied for the fn parameter.self- Value supplied for the self parameter.locals- Value supplied for the locals parameter.serviceName- Value supplied for the serviceName parameter.- Returns:
- Method result.
-
loadNewModules
Public InjectorService.loadNewModules member exposed by the AngularTS namespace contract.- Parameters:
mods- Value supplied for the mods parameter.
-