export class InjectableMetadata
export class InjectableMetadata
exported from angular2/core defined in angular2/src/core/di/metadata.ts (line 82)
A marker metadata that marks a class as available to Injector
for creation.
Example (live demo)
Injector
will throw NoAnnotationError
when trying to instantiate a class that
does not have @Injectable
marker, as shown in the example below.
Constructor
constructor()
constructor()
Not Yet Documented