UNPKG

@evan.network/ui-angular-core

Version:

The angular-core operates as an global and central library for the evan.network Angular 5 frontend development. Using this project you will be able to to the following things:

20 lines (19 loc) 860 B
/**************************************************************************************************/ /** * Singleton service to be able to create single service instances. * * @class Injectable (name) * @return {<type>} { description_of_the_return_value } */ export declare class SingletonService { constructor(); /** * Creates an single references for services to handle one time service creations and value bindings. * * @param SingeltonServiceClass Class object * @param instance Current instance of an class. * @param init Function to run, if the service was created once * @param updateOnCoreChange Run init function, if evan core gets updated */ create(SingeltonServiceClass: any, instance: any, init?: Function, updateOnCoreChange?: boolean): any; }