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.

    Parameters

    Returns Resource<"provider", "register", ProviderRegisterFn<Jimpex>>

    Example: Basic usage

      // Register it on the container
    container.register(htmlGeneratorProvider);
    // Getting access to the service instance
    const htmlGenerator = container.get<HTMLGenerator>('htmlGenerator');

    Example: Using with custom options

      container.register(
    htmlGeneratorProvider({
    serviceName: 'myHtmlGenerator',
    valuesServiceName: 'myValuesService',
    template: 'my-template.tpl.html',
    }),
    );

Properties

Properties

provider: true
register: ProviderRegisterFn<Jimpex>

Generated using TypeDoc