Function htmlGeneratorProvider

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 the after-start event of the application in order to trigger the generator of the HTML file.

  // 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',
}),
);

Properties

Properties

provider
register: ProviderRegisterFn<Jimpex>