Rest
...args: [options: HTMLGeneratorProviderOptions] // Register it on the container
container.register(htmlGeneratorProvider);
// Getting access to the service instance
const htmlGenerator = container.get<HTMLGenerator>('htmlGenerator');
container.register(
htmlGeneratorProvider({
serviceName: 'myHtmlGenerator',
valuesServiceName: 'myValuesService',
template: 'my-template.tpl.html',
}),
);
Generated using TypeDoc
The service provider that once registered on the container will set an instance of HTMLGenerator as the
htmlGenerator
service. it will also hook itself to theafter-start
event of the application in order to trigger the generator of the HTML file.