@kephas/angular
Version:
Provides integration capabilities with Angular.
31 lines (30 loc) • 958 B
TypeScript
import 'reflect-metadata';
import { AppServiceInfoRegistry } from '@kephas/core';
import { StaticClassProvider } from '@angular/core';
/**
* Helper class for registering the services with the Angular injector.
*
* @export
*/
export declare class AngularAppServiceInfoRegistry {
private serviceRegistry;
/**
* Creates an instance of AngularAppServiceInfoRegistry.
*
* @param {AppServiceInfoRegistry} serviceRegistry The service registry.
*/
constructor(serviceRegistry: AppServiceInfoRegistry);
/**
* Registers the application services to the Angular DI container.
*
* @param {...string[]} modules The modules to import to collect the service metadata.
*/
registerServices(): void;
/**
* Gets the providers for the root.
*
* @returns {StaticClassProvider[]}
*/
getRootProviders(): (StaticClassProvider)[];
private getDependencies;
}