Home Reference Source
import {Annotation} from './src/annotation.js'
public class | source

Annotation

Static Method Summary

Static Public Methods
public static

getAnnotationServiceNames(classes: *[]): *

public static
Returns all the angular module names for an array of classes

Constructor Summary

Public Constructor
public

constructor(name: *, targetCls: *)

Member Summary

Public Members
public get
public get
public get
public

name: *

public

Method Summary

Public Methods
public
this method was deprecated.
This method decorates the class with all the targetCls decorators
public

applyDecorators(instance: Object)

this method was deprecated.
This method decorates the created instance with all the targetCls decorators
public

applyInjectionBindings(instance: Object, injected: Array)

This method applies all the requested injection bindings from the targetCls to the created instance
public

configure(module: module)

This method can be overridden by child classes to configure the angular module after it is created
public

Static Public Methods

public static getAnnotationServiceNames(classes: *[]): * source

Params:

NameTypeAttributeDescription
classes *[]
  • optional
  • default: []

Return:

*

public static getModuleNames(classes: Array): Array source

Returns all the angular module names for an array of classes

Params:

NameTypeAttributeDescription
classes Array

An array of classes you want to module names for

Return:

Array

The name of the angular modules for these classes

Public Constructors

public constructor(name: *, targetCls: *) source

Params:

NameTypeAttributeDescription
name *
targetCls *

Public Members

public get decorators: * source

public get dependencies: * source

public get injections: * source

public name: * source

public targetCls: * source

Public Methods

public applyClassDecorators(targetCls: Object) source

this method was deprecated.

This method decorates the class with all the targetCls decorators

Params:

NameTypeAttributeDescription
targetCls Object

The targetCls to be decorated

public applyDecorators(instance: Object) source

this method was deprecated.

This method decorates the created instance with all the targetCls decorators

Params:

NameTypeAttributeDescription
instance Object

The created instance to be decorated

public applyInjectionBindings(instance: Object, injected: Array) source

This method applies all the requested injection bindings from the targetCls to the created instance

Params:

NameTypeAttributeDescription
instance Object

The created instance that wants the bindings

injected Array

An array with the injected instances that we will apply on the class instance

public configure(module: module) source

This method can be overridden by child classes to configure the angular module after it is created

Params:

NameTypeAttributeDescription
module module

The created angular module

public getInjectionTokens(): * source

Return:

*